aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-05-03Minor dmesg cleanup.Rob Landley
2015-05-03If a shortopt is configured out right before a bare longopt, the option ↵Rob Landley
parsing infrastructure segfaults because there's no next shortopt but the list isn't empty. (There was a test for this, but we're simultaneously traversing two lists and it was testing the wrong one.)
2015-05-02dmesg: add -t suppress timestamp flagMark Salyzyn
2015-05-01Portability bits for the recent ls smack changes.Rob Landley
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-30Add default sigpipe handler for android (as suggested by Elliott Hughes).Rob Landley
2015-04-30And remove the header part too.Rob Landley
2015-04-30Wild guess at cleaning up smack support. Don't have a test environment yet.Rob Landley
2015-04-30Remove redundant numlen.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-19Roadmap update, mostly from enh with a few other pending bits mixed in.Rob Landley
2015-04-18Android getprop and setprop from Elliott Hughes.Rob Landley
2015-04-17Link against libattr and libsmack.Xavier Roche
2015-04-17Fix a trivial typo in www/about.html.Elliott Hughes
Sticky shift key...
2015-04-17Make toybox --version use the "git describe" info if it's available.Rob Landley
2015-04-16terminal_size should use LINES, not ROWS.Elliott Hughes
The shell's pseudo-variable is called LINES. This is true of at least bash and mksh.
2015-04-16Shout from the rooftops that pending is not like other directories.Rob Landley
2015-04-15Put SELINUX in a a menu, and add config option for SMACK.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-10Update www/roadmap.html with Android progress.Elliott Hughes
Not much progress this week. Just route and umount. Also remove a stray reference to load_policy which already switched. Also remove an outdated claim that Android logging is done in the kernel. It's been in userspace for a while now.
2015-04-10Tweak .gitignore.Rob Landley
2015-04-08Tweak READMERob Landley
2015-04-08Update multiplexer help text for --versionRob Landley
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-07Adding --version broke ./toybox command list. (Oops.)Rob Landley
2015-04-05Announce switch to git.Rob Landley
2015-04-05Add --version to multiplexer.Rob Landley
Can't think of a better place to stick the actual version info than a #define at the top of main. Makefile and toys.h are equally awkward, querying git tags wouldn't work if building a release tarball... watch me forget to update this when cutting a release.
2015-04-05Bite the bullet and switch over to git.Rob Landley
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-03Add readfileat() to libRob Landley