Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-07-08 | Work around a posix violation in the croups filesystem that LTP requires. | Rob Landley | |
Posix says you removing a non-empty directory "shall fail" in both: https://pubs.opengroup.org/onlinepubs/9699919799.2018edition/functions/unlinkat.html https://pubs.opengroup.org/onlinepubs/9699919799.2018edition/functions/rmdir.html So toybox mv went ahead and unlinked the directory even if the contents hadn't all been deleted because posix guarantees it to be harmless. But cgroups (https://lwn.net/Articles/679786/) deletes the non-empty directory, thus the Linux Test Project's cgroups_fj_function test6 was failing with toybox mv because they depend on not triggering the posix violating behavior. Work around it by having mv DIRTREE_SAVE failing nodes and then check for a non-empty ->child in the COMEAGAIN as a signal not to unlink the dir. While I'm there do some code cleanup, add a cp -i test... | |||
2021-07-05 | Add split -n test, handle more than one leftover byte, clarify help text. | Rob Landley | |
2021-07-04 | Fix tail -F with no arguments. | Rob Landley | |
fstat() doesn't fail on stdin, so check for fd 0 explicitly so we don't try to access zero length array when optc was zero. (Plus can't reopen '-'.) | |||
2021-07-04 | Teach tail -F to work on file that doesn't initially exist (needed | Rob Landley | |
new lib/ flag), allow -s to be fraction of a second, inline (anonymous) struct so globals.h isn't using an incomplete type, blank line in GLOBALS() between option args and other variables, collate tail_continue() to one function, add test. | |||
2021-07-01 | tail: implement -F (and its companion -s). | Elliott Hughes | |
(Based on someone else's patch.) Implementing -F with inotify is a lot more work (including more portability shims for macOS), so this is a simpler polling implementation. Also fix my earlier mistake where xnotify_add() wasn't actually an 'x' function that exits on failure. | |||
2021-06-27 | Add support for -n in split | Ella-0 | |
2021-06-22 | Add support for -d $'\n' (cut by line!) and posix -nb (wraps to start of -c) | Rob Landley | |
2021-06-22 | Denys Vlasenko pointed out that other implementations use "t" as "total", | Rob Landley | |
and not many systems need to know "free terabytes". | |||
2021-06-22 | Update usage: line to include remaining options. | Rob Landley | |
2021-06-21 | Switch to FLAG() macros and forbid -f -F at the same time. | Rob Landley | |
2021-06-18 | Second attempt at making --help work with alias ls="ls --color" | Rob Landley | |
2021-06-17 | Avoid division by 0 error and mmap(0) failure for missing or zero length files. | Rob Landley | |
2021-06-12 | Check in the .htaccess file that triggers the server side includes | Rob Landley | |
for the nav menu. | |||
2021-06-10 | Revert the --help change, it breaks stuff like "echo -- --help". | Rob Landley | |
2021-06-09 | Ryan Prichard pointed out --help and --version can't be first in aliases. | Rob Landley | |
2021-06-09 | md5sum.c: simplify the table setup slightly. | Elliott Hughes | |
I don't think it was wrong before, but the strchr() in particular left me scratching my head. This formulation is slightly cheaper and seems more obviously correct. (Unrelated but nearby, I don't understand why anyone would ever want to calculate these tables at runtime, so this seems like another unnecessary CFG_TOYBOX_FLOAT to me, though an unusual one where we might want to _remove_ the floating-point code.) | |||
2021-06-09 | netstat.c: fix bounds checks. | Elliott Hughes | |
2021-06-09 | dmesg.c: fix off-by-one. | Elliott Hughes | |
2021-06-04 | "make install_airlock" no longer needs host versions of sha256/512sum. | Rob Landley | |
2021-06-04 | modprobe: fix parsing of short lines. | Elliott Hughes | |
The intent here seems to have been to ignore lines with too few arguments to be valid, but since strtok() returns NULL at the end of the string, if you only have "verb noun", you'd be falsely rejected. Since we've kept a count anyway, just check the count. | |||
2021-06-04 | More sha*sum cleanup. | Rob Landley | |
Make everything an OLDTOY of md5sum (combining help text), remove enum, combine unions, actually track 128 bit count for sha384/512. | |||
2021-06-02 | Remove unbalanced parentheses and repeated transition. | Rob Landley | |
2021-06-02 | Fix big endian in new sha2 commands. | Rob Landley | |
2021-06-02 | Cleanup. | Rob Landley | |
2021-06-02 | Fix "make tests" exiting on failure when test run in subshell. | Rob Landley | |
2021-06-02 | date: add -s. | Elliott Hughes | |
Used by someone's script. | |||
2021-06-02 | Add tests for other sha2 variants. | Rob Landley | |
2021-06-01 | Merge sha1sum and sha256sum tests. | Rob Landley | |
2021-06-01 | Clear environment variables between tests. | Rob Landley | |
2021-06-01 | Add sha256sum tests. | Rob Landley | |
2021-06-01 | fix USE declarations | Dan Brown | |
2021-06-01 | clean up unsuccessful attempt to calculate constants | Dan Brown | |
2021-06-01 | attempt to calculate round constants instead of using lookup table; doesn't ↵ | Dan Brown | |
work for SHA-512's 64-bit values | |||
2021-06-01 | first rough version of built-in hash sums | Dan Brown | |
2021-06-01 | add entry points for sha224,256,384,512 | Dan Brown | |
2021-06-01 | add sha256sum command which runs built-in sha1sum routine | Dan Brown | |
2021-05-29 | toysh: wchar_t->unsigned and turn "not" into a flag. | Rob Landley | |
2021-05-29 | Dear gcc: no, it really can't be used uninitalized. | Rob Landley | |
2021-05-28 | xparsedate should ignore trailing + or - (does not change timezone) | Rob Landley | |
2021-05-28 | Teach xparsedate() to handle more whitespace. | Rob Landley | |
2021-05-26 | Add find -quit | Rob Landley | |
2021-05-26 | Better link to LP64 documentation. | Rob Landley | |
2021-05-22 | Freenode->libera.chat ala ethereal->wireshark. | Rob Landley | |
https://boingboing.net/2021/05/19/freenode-irc-staff-quit-after-new-owner-seizes-control.html https://lwn.net/Articles/856543/ | |||
2021-05-19 | readelf: fix 32-bit build on Android. | Elliott Hughes | |
2021-05-19 | Commands in pending do not default y. | Rob Landley | |
2021-05-19 | 0.8.5 release0.8.5 | Rob Landley | |
2021-05-18 | The linux console code is inconsistent: most console= lines accept | Rob Landley | |
/dev/name but for some reason powerpc's hvc driver does not. | |||
2021-05-16 | Add black and white mode (x to toggle) | Rob Landley | |
2021-05-15 | Promote readelf to other. | Rob Landley | |
2021-05-15 | Cleanup readelf. | Rob Landley | |