aboutsummaryrefslogtreecommitdiff
path: root/toys
AgeCommit message (Collapse)Author
2015-05-03dhcpd writes leases on "dhcpd.leases" file.Hyejin Kim
but, dumpleases read from "udhcpd.leases".
2015-05-03Fix getprop sorting and error reporting.Elliott Hughes
Use qstrcmp instead of alphasort (which expects struct dirent arguments). Don't use perror_exit because property_list doesn't set errno.
2015-05-03Minor dmesg cleanup.Rob Landley
2015-05-02dmesg: add -t suppress timestamp flagMark Salyzyn
2015-04-30More ls cleanups from squinting at Jose's most recent smack patch.Rob Landley
Behavior change in flags: allow -long to work together, and -l1 work like -l not -1. I didn't make ls -gCl remember the g, though. (Because -Cg and -gC take the last one: I'll preserve explicit state but not implicit state. And if -1Cl and -lC1 aren't going to behave the same, it wasn't consistent anyway.)
2015-04-30Wild guess at cleaning up smack support. Don't have a test environment yet.Rob Landley
2015-04-29ls: Add -Z (Smack) optionJan Cybulski
Option triggers printing security context, for smack that is file's access smack label. Change-Id: I9054d9bcfe4d149e8fbfa0831b6ab50165d2bd91 Signed-off-by: Jan Cybulski <j.cybulski@samsung.com> Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
2015-04-28Fix truncate prefix bug and add truncate test suite entry.Rob Landley
2015-04-28Add prefix support Hyejin Kim asked about.Rob Landley
2015-04-27Fix ls -s and -i indentation in -C and -x modes. (Spotted by Jan Cybulski.)Rob Landley
2015-04-27Promote hexedit to other.Rob Landley
2015-04-27Some infrastructure hexedit needs. (Poor man's curses.)Rob Landley
2015-04-27Teach hexedit to actually edit. Add -r option for read only mode.Rob Landley
2015-04-25Fix display and cursor control (to respect bottom boundary).Rob Landley
No actual editing yet.
2015-04-24Too tired on the flight back from Japan to work on thinky stuff, so...Rob Landley
2015-04-21Bugfix from Hyejin Kim (count=1 shouldn't change name), plus a bounds check.Rob Landley
Test is 'echo "AAA c 1 0 0 2 5 0 0 1" | makedevs' makes AAA not AAA0.
2015-04-20Switch setprop to use TOYBOX_ON_ANDROID and fix getprop include.Rob Landley
(I commented out the android-only #include in getprop to do what compile testing I could, and then forgot to uncomment it.)
2015-04-19Cleanup getprop, add qstrcmp() to lib for qsort (because posix-2008 brokeRob Landley
alphasort), add compile-time probe for config symbol TOYBOX_ON_ANDROID.
2015-04-19mdev: implement hotplug support.Isaac Dunham
Use DEVPATH, DEVNAME, MAJOR, MINOR, and SUBSYSTEM instead of checking the current path and reading .../dev. While we're here, probe for partitions in block devices. This uses a very lame check for ACTION (which can be add, remove, or change): if it is "remove", then unlink the device.
2015-04-18Android getprop and setprop from Elliott Hughes.Rob Landley
2015-04-16Shout from the rooftops that pending is not like other directories.Rob Landley
2015-04-14Yet more ps work. Still not there yet.Rob Landley
2015-04-12unshare: fix -rSamuel Holland
Calling unshare(2) immediately puts us in the new namespace with the "overflow" user and group ID. By calling geteuid() and getegid() in handle_r() after calling unshare(), we try to map that to root, which Linux refuses to let us do. What we really want to map to root is the caller's uid/gid in the original namespace. So we have to save them before calling unshare().
2015-04-12Before trying to remount read only, see if block device responds to "become rw"Rob Landley
ioctl(). (This is a thing Android's old mount already does.)
2015-04-10Implement Android restorecon.Elliott Hughes
On Android, much of the restorecon logic is in libselinux, so this isn't portable. We do want to be able to build on the host for testing *other* toys, though, so #if keeps this building. Change-Id: Ida5a6713a926140c549d5770d62798f4aedca748
2015-04-10Fix load_policy error reporting.Elliott Hughes
Also switch to xopen for O_CLOEXEC paranoia and to avoid a conditional. Change-Id: Iee5c4c124bcac800313f586768ffcaade542bd22
2015-04-10getenforce takes no arguments.Elliott Hughes
Change-Id: Icbee1df8b316039c68ef326f9d4d80f32c603b21
2015-04-10setenforce takes exactly one argument.Elliott Hughes
Change-Id: I83c478ea9ddd456c61e3f0f99506a1028a7027a1
2015-04-10Make more(1) usable.Elliott Hughes
> Yes, I know, "don't use pending". Sadly, more(1) is pretty useless > without this. It gets confused by long lines or tabs. > > This patch also adds the missing prompt between multiple files. actually, it looks like we're already hard-coding some escape sequences? more(1) doesn't need anything that isn't in ANSI, so here's an alternative patch that fixes the same bugs as the other patch but also has a reverse-video prompt:
2015-04-08Revert last mdev commit because it copied code out of a GPLv2 program.Rob Landley
Guys, you CANNOT COPY CODE FROM BUSYBOX. I don't care if I was the initial author of that file, other people have touched it since. I know I added "pending" because I couldn't keep up with code review in realtime and stuff was getting lost, so we needed a place to park things before they underwent the full dorodango process. I also know none of the binaries I distribute has anything in pending enabled. But dude, if I'm going to find stuff like this I have to start reviewing the code BEFORE applying it to pending, and we all know where that leads. Please don't do this again.
2015-04-04To ensure that toybox can be installed alongside busybox withoutPaul Barker
confusing update-alternatives, the paths of the links installed by toybox should match those installed by busybox. This is accomplished by changing the flags of a few tools within toybox.
2015-04-04Another in-progress ps snapshot.Rob Landley
2015-04-03ps checkpoint du jour. Does not work yet.Rob Landley
2015-04-02Redoing ps from scratch. Random checkpoint that probably doesn't even compile.Rob Landley
Checking in a stopping point where I figured out what I did wrong, before changing it.
2015-03-29Fix head bug pointed out by felix janda (recent -123 code broke first file ↵Rob Landley
argument of -n).
2015-03-28Fix sed bug David Halls hit trying to compile libiconv.Rob Landley
2015-03-28Fix printf bug (%.s should be %.0s not %s) reported by Isabella Parakiss.Rob Landley
2015-03-27Promote setenforce to android.Rob Landley
2015-03-27Cleanup setenforce.Rob Landley
2015-03-27Promote getenforce.Rob Landley
2015-03-27Cleanup getenforce.Rob Landley
2015-03-27tail: add old -123 support and comment out #-f until it's actually implemented.Rob Landley
2015-03-27Promote load_policy to android.Rob Landley
2015-03-27Minor cleanup of load_policy.Rob Landley
2015-03-24Implement load_policy.Elliott Hughes
Note that this is a case where Android's tool isn't the same as the usual tool. Ours takes an explicit file containing the policy to be loaded. restorecon is at least command-line compatible, but the implementation is all in Android's libselinux where there's a selinux_android_restorecon function.
2015-03-23Promote runcon to android (and add an android menu).Rob Landley
2015-03-23Trivial runcon cleanups.Rob Landley
2015-03-23Add runcon(1).Elliott Hughes
2015-03-23add missing space in dd outputElliott Hughes
Also, coreutils says "s" instead of "seconds". POSIX specifies the format of the previous two lines, but doesn't even mention this line.
2015-03-21Another bug from David Halls: find -exec wasn't consuming its argument when ↵Rob Landley
it didn't activate. test: find . -name README -exec echo one '{}' ';' -or -exec echo two '{}' ';'