aboutsummaryrefslogtreecommitdiff
path: root/toys
AgeCommit message (Collapse)Author
2014-07-18Find bugfixes.Rob Landley
The check for -print vs -print0 was tested before I optimized out the "-" in the strcmps, and I didn't adjust the offset or retest it. (Ooops.) Also, I wasn't clearing the ! value when descending into parentheticals, so "find . -name blah -o \! \( -stuff -o -thing \)" acted like it had a spurious second ! before -stuff inside the parentheses.
2014-07-17Apparently I deleted this locally but forgot to commit the removal. Oops.Rob Landley
2014-07-17Use libc daemon() instead of pending daemonize.Rob Landley
2014-07-16Write a new find. Not quite done, but the basics work.Rob Landley
2014-07-14fdisk : partitions > 60, are deleted, offset entry for extended partitions ↵Ashwini Sharma
was wrong. fsck: memory leak/segfault resolved. ftpget : warning for unused variable 'ptr' removed.
2014-07-14Implement -HL for cp.Rob Landley
2014-07-06Autodetect --bind and --loop mounts in a way that doesn't interfere with ↵0.4.9Rob Landley
network filesystems or -t newtype mounts that trigger a module load.
2014-07-06minor cleanup: move a global variable into GLOBALS(), inline strchr_null(), ↵Rob Landley
some whitespace and bracket cleanups.
2014-07-06Minor cleanup pass.Rob Landley
2014-07-06Add nbd-client.Rob Landley
2014-07-06Promote killall5 by merging it into kill.Rob Landley
Slight conflict here: this puts killall5 in the posix directory. But the commands sharing code trumps that.
2014-07-05Try to lookup all umounts in /proc/mounts so we can auto-zap loopback devices.Rob Landley
2014-07-04TAR - this supports archive creation and extraction based on the USTAR ↵Ashwini Sharma
format (described in PAX Spec). For (de)compression '-z' gzip is supported.
2014-07-03date -r wasn't saving the result in the right variable. (And make date -ur ↵Rob Landley
work.)
2014-07-03Fix rm -rf of chmod 000 directories.Rob Landley
2014-06-30Promote makedevs to other.Rob Landley
2014-06-30Bugfixes for cleaned up makedevs.Rob Landley
Newline after table = <stdin>, move start/increment/count loop around entire device creation if/else staircase including chmod/chown code and use ptr to record node vs toybuf.
2014-06-28Use dlist_terminate() in patch.Rob Landley
2014-06-28Add : as an alias for true (toysh needs this).Rob Landley
2014-06-28Make fallocate depend on probe for libc support.Rob Landley
2014-06-28Promote mkpasswd from pending to other.Rob Landley
2014-06-25Cleanup pass on mkpasswd.cRob Landley
2014-06-25Cleanup pass on makedevs. Need to test it before promoting.Rob Landley
2014-06-24Glibc and uClibc provide CERASE from termios.h, but musl requies you to ↵Rob Landley
#include a non-posix header and the maintainer considers this a feature. So just use the constant directly.
2014-06-24Move deallocvt.c into openvt.c, cleanup both.Rob Landley
2014-06-11Option parsing for nohup needs to stop at first nonoption argument. Minor ↵Rob Landley
cleanups.
2014-06-11Cleanup pass on loginRob Landley
2014-06-11Enable fallocate in defconfig.Rob Landley
2014-06-11Cleanup pass on host.cRob Landley
2014-06-11Promote strings.Rob Landley
2014-06-11Cleanup strings.Rob Landley
2014-06-10pending/useradd: unbreak buildIsaac Dunham
When useradd started using xfork(), the conditional in else if (pid > 0) became unnecessary, since else means pid is nonzero and xfork makes it non-negative. However, the "if" was not deleted.
2014-06-09Promote rfkill.Rob Landley
2014-06-09Cleanup pass on rfkill.Rob Landley
2014-06-09When locale is enabled, sprintf("%.123s", str) is counting characters, not ↵Rob Landley
bytes, so we can't globally enable locale without opening stack/heap smashing vulnerabilities. Make commands individually request setlocale() using TOYFLAGS instead.
2014-06-08Warning fix from Rich Felker.Rob Landley
2014-06-08Add host by Rich Felker.Rob Landley
2014-06-07Make md5sum/sha1sum -b flag be "brief" output (just the hash).Rob Landley
(It's not like systems implementing -b binary and -t text still matter.)
2014-06-03mount: start on option parsing, implement loopback and bind mount autodetection.Rob Landley
2014-06-02Help text should have a blank line after usage: lines, and a couple other ↵Rob Landley
whitespace tweaks.
2014-06-01cpio: archive more filesIsaac Dunham
While writing tests for cpio, I found that cpio tries to open empty files if they're regular files, and fails to archive them if unreadable. This can be easily avoided, and is not the usual behavior.
2014-05-31iconv: some fixesFelix Janda
- fix problem with sequences at buffer boundaries - add (ignored) -c and -s options - don't try to continue with a file when read() fails
2014-05-31Promote partprobe.Rob Landley
2014-05-31Cleanup partprobe.Rob Landley
2014-05-31Introduce xfork() and make commands use it, and make some WEXITSTATUS() use ↵Rob Landley
WIFEXITED() and WTERMSIG()+127.
2014-05-29killall5 - kill all the processes not in its session.Ashwini Sharma
2014-05-29makedevs - making devices/nodes in a range. Supports reading the tabled ↵Ashwini Sharma
entry from file.
2014-05-29strings - print the strings in the file.Ashwini Sharma
2014-05-29First stab at mount, very incomplete.Rob Landley
2014-05-29Make "losetup /dev/loop0 filename" work.Rob Landley
Sigh. Implement the complex cases and you screw up the simple cases you already tested...