aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-07-02Dereference one layer of symlink in multiplexer on lookup failure, so you canRob Landley
"ln -s gsed sed" or similar if you need to use nonstandard names for things.
2018-07-02Fix bugs in yesterday's bufgetgrgid() work (reported by Elliott).Rob Landley
2018-06-30Loop retrying larger allocation sizes for bufgetpwuid/bufgetgrgid.Rob Landley
Slightly tweaked version of Elliott's patch. We probably only need to do this for groups (struct group * has a list of users that belong to it, but struct passwd doesn't, getgrouplist() is separate) but keeping the code of the two similar in case there's a way to merge them later.
2018-06-29Cleanup pass on passwd, needs more testing.Rob Landley
2018-06-28stat: `stat -f` uses %T rather than %t.Elliott Hughes
(At least for coreutils 8.28.)
2018-06-28stat: fix %a in default output.Elliott Hughes
`stat -c %a` doesn't output a leading zero, but `stat` does.
2018-06-28stat: remove hideous GNUism.Elliott Hughes
Even GNU coreutils 8.28 doesn't use the lopsided `quoting' any more.
2018-06-28Tweak help text to clarify time fields are access/modification/creation time.Rob Landley
2018-06-26The prlimit probe broke when implicit function declarations became an errorRob Landley
(see comment in ulimit.c about the glibc header bug), so copy prototype into the probe too. Without this ulimit always disabled by config probe.
2018-06-23Add a couple more fmt tests.Rob Landley
2018-06-23News and version update for 0.7.7 release.0.7.7Rob Landley
2018-06-21Elliott pointed out that ping's been promoted, not needed in airlock list.Rob Landley
2018-06-21Promote fmt to otherRob Landley
2018-06-21Tweak fmt width calculation.Rob Landley
2018-06-20Redo of fmt.c around loopfiles_lines() and understanding tab indents.Rob Landley
2018-06-19The kernel's old kconfig had _shipped files, the new one should too, but untilRob Landley
then install bison and flex. (Not yacc and lex, the kernel build is calling the propreitary versions.)
2018-06-14More cut tests.Rob Landley
2018-06-14Fix cut -DF as awk replacement by not matching delimiterless lines with -DRob Landley
2018-06-14Change do_lines() semantics to end with a callback(0,0) to indicate EOF,Rob Landley
adjusting existing users.
2018-06-14I tend to put extra parentheses around & because its precedence being slightlyRob Landley
wonky was Dennis Ritche's one public regret about C (see https://www.lysator.liu.se/c/dmr-on-or.html).
2018-06-14ping: support ping6 as a synonym for `ping -6`.Elliott Hughes
Sadly, this is what existing scripts seem to do.
2018-06-13ping: add -m, switch to xsetsockopt.Elliott Hughes
Bug: http://b/28027677 toybox ping doesn't support -m mark Test: strace -e setsockopt ./toybox ping -c 1 -m 0x1000 127.0.0.1
2018-06-12top: remove flicker in interactive mode.Elliott Hughes
2018-06-12top: running processes are shown in bold.Elliott Hughes
2018-06-12Add tests for file stdin behavior.Elliott Hughes
2018-06-11Promote ping to toys/netRob Landley
2018-06-11Fix ping -f, add summary section, yank TOYFLAG_ROOTONLY.Rob Landley
Traditional "ping flood" would be "ping -fi0 -c0" but we require root for -i<.2
2018-06-09Show workaround for the kernel bug when ping hits it.Rob Landley
Patches were submitted upstream to fix it at https://patchwork.kernel.org/patch/9847017/ and http://lkml.iu.edu/hypermail/linux/kernel/1710.3/04715.html to no effect.
2018-06-03call strip as $STRIPFrancesco Valla
This is useful e.g. for cross toolchains that define $CC and $STRIP instead of $CROSS_COMPILE.
2018-06-02Convert more ps help text to two columns.Rob Landley
2018-05-27Teach "file -" to recognize ELF files, add bounds checking and comments.Rob Landley
2018-05-19Add buildroot prerequisites to roadmap.Rob Landley
2018-05-07remove also "symlink" after file.testReverend Homer
2018-05-06Fix bug in 'xxd' causing incorrect translation for upper-case characters.Zach van Rijn
2018-05-06Support fractional seconds (and other time units) in `top -d`.Elliott Hughes
LTP uses `top -d 0.1`, which isn't convincingly useful, but general support for other time units might be useful, and switching to xparsetime addresses both at once. Also fix 3169d948c049664bcf7216d4c4ae751881099d3e where I mistakenly treated `rev` and `toys.optflags&FLAG_b` as interchangeable. (Without this second fix, `top -b` looks fine but `top` is broken!) Also fix xparsetime to reject input such as "monkey" or "1monkey".
2018-05-03Promote uuidgen.Rob Landley
2018-05-03Add uuidgen.Elliott Hughes
Reuse create_uuid, but make it match the current RFC.
2018-04-23Don't include spurious '\r's in `top -b` output.Elliott Hughes
2018-04-20Update tftp.cfilipperich
Optionally, accept and acknowledge OACK from server after sending original RRQ, if the server implements RFC2347 and responds first with an OACK before sending DATA packets.
2018-04-18Add the flags linux kernel build checks for.Rob Landley
2018-04-13Add getconf.Rob Landley
2018-04-12Fix "cp -p" doesn't preserve timestamps bugMinghui Liu
2018-04-08Add cp --parentsRob Landley
2018-04-08Add mkpath() for common case of mkpathat(), and #define magic constants.Rob Landley
2018-04-08Add readlink -m to show where a missing path would be.Rob Landley
Note: ubuntu will show -m through a file, this treat that as error.
2018-04-08Add -- to "eval".Rob Landley
If you ever do have a command name beginning with a -, eval won't run it by default, because even though it takes no arguments it tries to parse them anyway, so it complains it's an unrecognized argument. Solution: -- as first argument (which is parsed and stops argument parsing).
2018-04-08Fix error message: update $NAME before complaining about test with wrong # args.Rob Landley
2018-04-08Ubuntu's ln -f dies if you do "ln -s link link; ln -sf / link". Toybox'sRob Landley
ln -f does the rm and retry if the first attempt fails for any reason. So if you run the readlink test with an ubuntu host $PATH, it fails, but it works with a toybox host path.
2018-04-06Fix precedence error in vmstat.Elliott Hughes
toys/other/vmstat.c:98:12: error: logical not is only applied to the left hand side of this bitwise operator [-Werror,-Wlogical-not-parentheses] if ((!toys.optflags&FLAG_n) && isatty(1)) terminal_size(0, &rows); ^ ~
2018-04-03Factor out xtempfile()Rob Landley