Rob Landley [Tue, 5 Mar 2013 08:33:12 +0000 (02:33 -0600)]
Fix another allyesconfig build break in the pending directory.
Rob Landley [Sun, 24 Feb 2013 19:48:15 +0000 (13:48 -0600)]
Sed's still just a stub, but clean it up enough so it at least compiles.
Rob Landley [Sun, 24 Feb 2013 18:51:40 +0000 (12:51 -0600)]
Add readahead.
Rob Landley [Sun, 24 Feb 2013 17:11:02 +0000 (11:11 -0600)]
Comment updates and a policy statement about avoiding #define GNU_dammit
Rob Landley [Sun, 24 Feb 2013 00:32:08 +0000 (18:32 -0600)]
Accumulated web page changes. (Release announcement for previous release, roadmap updates, etc.)
Rob Landley [Fri, 22 Feb 2013 18:03:17 +0000 (12:03 -0600)]
Fix a warning when debug code enabled.
Rob Landley [Fri, 22 Feb 2013 17:22:01 +0000 (11:22 -0600)]
Move some unfinished commands to the "pending" directory.
Rob Landley [Mon, 11 Feb 2013 00:04:15 +0000 (18:04 -0600)]
Implement cp -s option.
Rob Landley [Tue, 5 Feb 2013 04:33:27 +0000 (22:33 -0600)]
Tweak cmp test to be a little more deterministic.
Rob Landley [Mon, 4 Feb 2013 14:07:32 +0000 (08:07 -0600)]
More support for old (~2008) build environments, move the #ifdef checks for symbols out of specific library version checks (shouldn't hurt anything), remove obsolete debug macro.
Rob Landley [Sun, 3 Feb 2013 23:04:36 +0000 (17:04 -0600)]
Some older build environments don't have LOOP_CTL_GET_FREE or LOOP_SET_CAPACITY. Substitute constants so they can get the rest of losetup without a build break.
Rob Landley [Thu, 31 Jan 2013 10:13:07 +0000 (04:13 -0600)]
Fix -in behavior: descend into existing directory without prompting, show full path in error messages, actually overwrite when answering yes to -i.
Rob Landley [Thu, 31 Jan 2013 10:05:56 +0000 (04:05 -0600)]
Wrong closing tag in roadmap.html.
Rob Landley [Thu, 31 Jan 2013 10:05:02 +0000 (04:05 -0600)]
id: make "id -Gn root" print root's groups instead of current user (and without leading space), enforce max 1 argument and at most one of Ggu.
Rob Landley [Thu, 31 Jan 2013 07:56:57 +0000 (01:56 -0600)]
Add time command (that only does posix mode).
Rob Landley [Fri, 18 Jan 2013 12:52:52 +0000 (06:52 -0600)]
Added tag 0.4.3 for changeset
f8f5ddb6b69a
Rob Landley [Fri, 18 Jan 2013 12:03:00 +0000 (06:03 -0600)]
Adjust umask(0) for cp -p so mknod doesn't have to try to fchmodat() without the unsupported symlink nofollow flag.
Rob Landley [Fri, 18 Jan 2013 05:18:03 +0000 (23:18 -0600)]
Switch readlink on by default, and fill out readlink.test.
Rob Landley [Fri, 18 Jan 2013 05:16:38 +0000 (23:16 -0600)]
Fix xabspath() resolving symlink after .., and properly detecting failure for last entry after nondir.
Rob Landley [Wed, 16 Jan 2013 12:57:44 +0000 (06:57 -0600)]
Make "sudo cp -rp /dev/null blah" work. Still not happy with it, fchmodat(AT_SYMLINK_NOFOLLOW) doesn't work (there's a glibc bug open for this. It's really a missing kernel syscall, but glibc fails without ever making any syscall if you feed it that flag, which isn't helpful).
Rob Landley [Tue, 15 Jan 2013 18:33:46 +0000 (12:33 -0600)]
Work around more random uClibc-specific breakage.
Rob Landley [Mon, 14 Jan 2013 11:25:19 +0000 (05:25 -0600)]
Silence deeply stupid gcc warning. (First non-declaration line of function: if (file) ffd = open(); at end of of function: if (file) close(ffd); "file" is an argument to the function and nothing else assigns to it. gcc warning on that close, "ffd may be used uninitialized!" _HOW_?)
Rob Landley [Sun, 13 Jan 2013 19:48:25 +0000 (13:48 -0600)]
Revert some debug code accidentally checked in at commit 715.
Rob Landley [Sat, 12 Jan 2013 07:40:16 +0000 (01:40 -0600)]
Update -p and -f to apply properly to various conditions. Still some bugs to squeeze out but this gets the infrastructure mostly right (and does away with the remaining gotos).
Rob Landley [Fri, 11 Jan 2013 02:19:23 +0000 (20:19 -0600)]
Teach cp to do -n.
Rob Landley [Wed, 9 Jan 2013 11:16:48 +0000 (05:16 -0600)]
Teach cp to do mknod.
Rob Landley [Tue, 8 Jan 2013 03:28:46 +0000 (21:28 -0600)]
Adapt cp to updated dirtree code.
Rob Landley [Sat, 5 Jan 2013 06:44:24 +0000 (00:44 -0600)]
Use basename() where appropriate.
Rob Landley [Sat, 5 Jan 2013 03:10:49 +0000 (21:10 -0600)]
Make basename use basename().
Rob Landley [Wed, 2 Jan 2013 08:00:35 +0000 (02:00 -0600)]
Have error_msg() and friends set TT.exitval to 1 if it's still 0, clean out other places that were setting it that no longer need to.
Rob Landley [Mon, 31 Dec 2012 20:38:13 +0000 (14:38 -0600)]
Make dirtree_handle_callback() start with dirtree_ like the rest of the dirtree functions.
Rob Landley [Mon, 31 Dec 2012 03:35:01 +0000 (21:35 -0600)]
Add losetup. (Who knows, it might even work.)
Felix Janda [Sun, 30 Dec 2012 10:53:27 +0000 (11:53 +0100)]
Fix invalid free in toysh.
Rob Landley [Sun, 30 Dec 2012 10:43:11 +0000 (04:43 -0600)]
Getting the pwd -L behavior right is fiddly.
Felix Janda [Fri, 28 Dec 2012 21:10:21 +0000 (22:10 +0100)]
Add some tests for pwd.
Felix Janda [Thu, 27 Dec 2012 16:56:39 +0000 (17:56 +0100)]
Add options -L and -P to pwd.
Rob Landley [Sat, 29 Dec 2012 09:18:34 +0000 (03:18 -0600)]
Ashwini Sharma pointed out that my previous tweak to [!abc] groups still didn't get the error reporting right (test case "touch -d 12 -r f2 f1"). This says "no 'r' with 'd'" for that, and still shouldn't be able to fall off the end of the list (segfault) because an option can't conflict with itself (that's what the ~(1<<i) on lib/args.c line 317 is for).
Felix Janda [Thu, 27 Dec 2012 16:55:21 +0000 (17:55 +0100)]
Add tests to mkfifo based on tests for mkdir.
Felix Janda [Thu, 27 Dec 2012 16:52:14 +0000 (17:52 +0100)]
mkfifo -m is already implemented.
Rob Landley [Fri, 28 Dec 2012 00:44:37 +0000 (18:44 -0600)]
Fix option grouping.
Rob Landley [Thu, 27 Dec 2012 23:09:17 +0000 (17:09 -0600)]
TOYBOX_DEBUG warns about lack of suid bit when running a STAYROOT command, but it shouldn't warn just because the multiplexer command "toybox" is stayroot.
Rob Landley [Thu, 27 Dec 2012 01:39:51 +0000 (19:39 -0600)]
A screen width of 1 is possible (in some weird setups), and gives ls -C a division by zero error.
Rob Landley [Sun, 23 Dec 2012 21:07:28 +0000 (15:07 -0600)]
Minor cleanups.
Elie De Brauwer [Sun, 16 Dec 2012 15:51:30 +0000 (16:51 +0100)]
LSB does not allow killall to kill itself
Rob Landley [Sun, 23 Dec 2012 20:06:17 +0000 (14:06 -0600)]
Minor tweaks.
Felix Janda [Sun, 23 Dec 2012 16:44:35 +0000 (17:44 +0100)]
Add some tests for mkdir
Felix Janda [Sun, 23 Dec 2012 15:25:31 +0000 (16:25 +0100)]
Add -m option to mkdir
Elie De Brauwer [Sun, 16 Dec 2012 12:43:36 +0000 (13:43 +0100)]
Extend killall with support for -v and -i
Rob Landley [Sun, 23 Dec 2012 07:25:27 +0000 (01:25 -0600)]
Elie De Brauwer pointed out that xputs() isn't reliably reporting errors because there's no flush. Rather than change the output granularity, flush before exit and check errors there. (We still need xputc() doing it so "yes" doesn't continue forever.)
Rob Landley [Sun, 23 Dec 2012 07:21:01 +0000 (01:21 -0600)]
Whitespace.
Elie De Brauwer [Sun, 16 Dec 2012 16:58:25 +0000 (17:58 +0100)]
Extend seq to support -f (format string) and -s (string separator) as requested by LSB
Elie De Brauwer [Sat, 22 Dec 2012 10:50:11 +0000 (11:50 +0100)]
Fix tac to handle the "abc\ndef" case properly
Rob Landley [Sun, 23 Dec 2012 06:37:42 +0000 (00:37 -0600)]
Update mkstatus.py, roadmap.html, and status.html.
Elie De Brauwer [Sat, 22 Dec 2012 10:44:21 +0000 (11:44 +0100)]
Refactoring broke rev
Rob Landley [Wed, 19 Dec 2012 15:16:45 +0000 (09:16 -0600)]
Web page update for release.
Rob Landley [Wed, 19 Dec 2012 15:16:27 +0000 (09:16 -0600)]
Minor cleanups.
Elie De Brauwer [Sun, 16 Dec 2012 11:31:15 +0000 (12:31 +0100)]
Adding implementation of rev including tests
Elie De Brauwer [Sat, 15 Dec 2012 18:51:43 +0000 (19:51 +0100)]
Adding tests for tac based on cat tests
Elie De Brauwer [Sat, 15 Dec 2012 18:28:29 +0000 (19:28 +0100)]
Simplify tac, the newline checking is already done in the get_line() function
Rob Landley [Sun, 16 Dec 2012 21:27:33 +0000 (15:27 -0600)]
Missing letter in help text.
Rob Landley [Sat, 15 Dec 2012 18:29:43 +0000 (12:29 -0600)]
Added tag 0.4.2 for changeset
8947c0d35e58
Rob Landley [Thu, 13 Dec 2012 03:13:12 +0000 (21:13 -0600)]
The Linux kernel "make clean" calls rm -f with no arguments, which apparently is not an error.
Rob Landley [Tue, 11 Dec 2012 03:08:42 +0000 (21:08 -0600)]
Add stat submission to new "pending" directory, along with infrastructure to support pending.
Rob Landley [Mon, 10 Dec 2012 07:48:02 +0000 (01:48 -0600)]
essat's flag not to follow symlinks isn't in the system call, and if libc is supposed to implement this as a wrapper uClibc gets it wrong. So use the stat info about symlinks instead. (Doesn't check the parent directory, but if that's read only we can't delete the file anyway so prompting is moot.)
Rob Landley [Sun, 9 Dec 2012 19:57:04 +0000 (13:57 -0600)]
Meddle.
The <1 has to come first in the option string, normalize whitespace,
sprintf of %d maxes out at -2 billion ala 12 bytes with null terminator so
we don't need a length check in a 4k buffer, use the "%*s" feature of printf
to prepend whitespace for us, take advantage of c99 defining ! to return 0 or 1.
Elie De Brauwer [Sat, 8 Dec 2012 19:10:05 +0000 (20:10 +0100)]
Adding -s (single shot) and -o (omit pids) options to pidof
Rob Landley [Sun, 9 Dec 2012 19:20:16 +0000 (13:20 -0600)]
Set executable bits on two test scripts.
Elie De Brauwer [Sat, 8 Dec 2012 13:40:17 +0000 (14:40 +0100)]
Adding sha1sum tests based on RFC 3174
Elie De Brauwer [Sat, 8 Dec 2012 12:28:40 +0000 (13:28 +0100)]
Adding tests for cat
Rob Landley [Sun, 9 Dec 2012 03:10:10 +0000 (21:10 -0600)]
Add README file to each toys/ directory, teach build infrastructure to get fancy name from that. This means adding new directories shouldn't require touching build scripts.
Rob Landley [Sat, 8 Dec 2012 08:26:56 +0000 (02:26 -0600)]
Complicate the rm -i behavior to do what posix specifies.
Rob Landley [Sat, 8 Dec 2012 08:25:32 +0000 (02:25 -0600)]
Make yesno() always read from stdin and write to stderr. (If we need to find our tty, open /dev/tty, but existing users don't.)
Rob Landley [Fri, 7 Dec 2012 12:26:21 +0000 (06:26 -0600)]
New rm command.
Rob Landley [Thu, 6 Dec 2012 21:15:30 +0000 (15:15 -0600)]
Update link to posix in docs (open group broke their website).
Rob Landley [Thu, 6 Dec 2012 21:13:30 +0000 (15:13 -0600)]
Have dirtree_add_node() set parent so error message can provide full path.
Rob Landley [Mon, 3 Dec 2012 22:16:06 +0000 (16:16 -0600)]
Use sched_{set,get}affinity directly so musl doesn't have to provide wrappers.
Rob Landley [Sun, 2 Dec 2012 00:30:48 +0000 (18:30 -0600)]
Minor whitespace tweak.
Rob Landley [Sun, 2 Dec 2012 00:30:20 +0000 (18:30 -0600)]
First guess at what internationalization support for expand would look like.
Rob Landley [Sun, 2 Dec 2012 00:27:37 +0000 (18:27 -0600)]
Generate status page with new pubs.opengroup.org urls.
Rob Landley [Sun, 2 Dec 2012 00:26:58 +0000 (18:26 -0600)]
Remove unused structure definition.
Rob Landley [Sun, 2 Dec 2012 00:26:21 +0000 (18:26 -0600)]
The open group changed their website stupidly, so opengroup.org/onlinepubs forwards to a dead server and you have to use pubs.opengroup.org/onlinepubs now. Change the hello template to note the new location. (Waiting to see if they fix it upstream before touching every command in toys/posix.)
Rob Landley [Sun, 2 Dec 2012 00:12:06 +0000 (18:12 -0600)]
Add header that musl libc needs.
Rob Landley [Sat, 1 Dec 2012 23:59:38 +0000 (17:59 -0600)]
Fix ancient glibc workaround to force fstatat64
Rob Landley [Sat, 1 Dec 2012 17:03:52 +0000 (11:03 -0600)]
Minor cleanup: unify two codepaths that do the same thing.
Rob Landley [Sat, 1 Dec 2012 16:53:03 +0000 (10:53 -0600)]
Would the compiler like to warn me about declaring two variables with the same name in the same function? No? Carry on then...
Rob Landley [Sat, 1 Dec 2012 06:42:01 +0000 (00:42 -0600)]
Felix Janda pointed out that the r in mbrtowc() stands for "restartable" so it's already buffering the partial data we feed it, so rolling back most of the last commit to wc.
Rob Landley [Sat, 1 Dec 2012 06:21:37 +0000 (00:21 -0600)]
Re-add backspace support to expand (oops) and fix test to expect data plus backspace characters rather than the chracters cancelling each other out before output.
Rob Landley [Fri, 30 Nov 2012 08:41:52 +0000 (02:41 -0600)]
Largeish rewrite of expand, mostly described on the mailing list.
Rob Landley [Thu, 29 Nov 2012 04:56:16 +0000 (22:56 -0600)]
md5sum tests from RFC 1321
Rob Landley [Thu, 29 Nov 2012 02:44:52 +0000 (20:44 -0600)]
Use the specified compiler for preprocessing.
Rob Landley [Wed, 28 Nov 2012 09:12:02 +0000 (03:12 -0600)]
The previous wc -m didn't handle multibyte characters that crossed a buffer boundary, so take a guess at making that work. (I haven't got a test case for this. I also don't know how to handle invalid sequences so just don't count them.)
Jonathan Clairembault [Tue, 27 Nov 2012 10:09:04 +0000 (11:09 +0100)]
login: Avoid gcc to drop exit condition because of "always false condition".
Rob Landley [Tue, 27 Nov 2012 19:55:57 +0000 (13:55 -0600)]
First round of expand cleanups.
Jonathan Clairembault [Fri, 23 Nov 2012 08:24:53 +0000 (09:24 +0100)]
expand: handle backspace.
Jonathan Clairembault [Thu, 22 Nov 2012 23:06:28 +0000 (00:06 +0100)]
Add expand command as described in POSIX-2008.
Erratum: Do not handle backspace.
Rob Landley [Tue, 27 Nov 2012 05:36:25 +0000 (23:36 -0600)]
Squash "type punned pointer" nonsense with a bigger hammer. (Sheesh.)
Rob Landley [Tue, 27 Nov 2012 05:24:07 +0000 (23:24 -0600)]
The headers of uClibc and older glibc got unhappy with O_DIRECTORY and some other stuff. Fix it up in portability.h.
Rob Landley [Mon, 26 Nov 2012 20:14:29 +0000 (14:14 -0600)]
Cleanup i18n support (#ifdefectomy, move global init to process launch). Teach make.sh to emit "#define FLAG_x 0" for options inside disabled USE macros so we can unconditionally refer to them.
Rob Landley [Mon, 26 Nov 2012 01:23:10 +0000 (19:23 -0600)]
Update touch: add remaining posix arguments, make existing ones work.
Felix Janda [Wed, 21 Nov 2012 19:38:29 +0000 (20:38 +0100)]
Make internalization support optional