OSDN Git Service
Rob Landley [Thu, 11 Apr 2013 03:30:02 +0000 (22:30 -0500)]
More cleanup on find.
Rob Landley [Thu, 11 Apr 2013 00:58:21 +0000 (19:58 -0500)]
Redo find's indenting from tabs to two spaces.
Felix Janda [Wed, 10 Apr 2013 17:25:06 +0000 (19:25 +0200)]
Partial cleanup of find
- Remove unnecessary headers
- dump_node is not used anywhere
- exec_buf is unused
- Replace SUCCESS with 1 and simplify code accordingly
- a==0 -> !a
- Simplify an incremation pattern using pre-increments
- Add static keyword to functions
- Make error messages print to stderr
Rob Landley [Wed, 10 Apr 2013 06:48:24 +0000 (01:48 -0500)]
Some xzcat cleanup by Isaac Dunham.
Rob Landley [Sun, 7 Apr 2013 00:57:54 +0000 (19:57 -0500)]
Fix argument parsing so -- doesn't include itself in output.
Rob Landley [Fri, 5 Apr 2013 05:35:05 +0000 (00:35 -0500)]
More ifconfig cleanups, mostly removing unused code.
Rob Landley [Fri, 5 Apr 2013 01:27:08 +0000 (20:27 -0500)]
Drive-by cleanup on ifconfig.
Rob Landley [Fri, 5 Apr 2013 00:39:44 +0000 (19:39 -0500)]
An ifconfig bugfix from the original submitter.
Rob Landley [Tue, 2 Apr 2013 06:58:18 +0000 (01:58 -0500)]
Kyungwan Han submitted ifconfig.
Rob Landley [Tue, 2 Apr 2013 06:34:34 +0000 (01:34 -0500)]
Clean uudecode up the rest of the way, move pending->posix and default y.
Rob Landley [Fri, 29 Mar 2013 04:33:27 +0000 (23:33 -0500)]
More uudecode cleanup.
Rob Landley [Fri, 29 Mar 2013 03:29:50 +0000 (22:29 -0500)]
More uudecode cleanup.
Rob Landley [Fri, 29 Mar 2013 00:28:27 +0000 (19:28 -0500)]
Change uuencode test to match what other uuencode implementations actually produce.
Rob Landley [Thu, 28 Mar 2013 03:34:28 +0000 (22:34 -0500)]
Where I left off on analysis of other multicall binaries...
Rob Landley [Wed, 27 Mar 2013 05:52:17 +0000 (00:52 -0500)]
Incremental cleanup of uudecode.
Rob Landley [Wed, 27 Mar 2013 05:10:58 +0000 (00:10 -0500)]
Fix the USE() macro around NEWTOY, tweak help text, remove unnecessary wrapper, tweak whitespace and curly brackets.
Rob Landley [Wed, 27 Mar 2013 05:04:43 +0000 (00:04 -0500)]
uudecode test should just call "uudecode" (not multiplexer via a path), and first test shouldn't succeed if toybox isn't even there.
Rob Landley [Wed, 27 Mar 2013 03:31:10 +0000 (22:31 -0500)]
Add help text for pending test command. (No actual implementation yet.)
Rob Landley [Tue, 26 Mar 2013 06:49:18 +0000 (01:49 -0500)]
Finish uuencode cleanup, default y, move it from pending to posix.
Rob Landley [Mon, 25 Mar 2013 03:35:32 +0000 (22:35 -0500)]
First round of uuencode cleanup: generate table, tweak help text, remove unnecessary output buffers, simplify base64 functions..
Rob Landley [Sun, 24 Mar 2013 22:20:47 +0000 (17:20 -0500)]
Logger, by Ilya Kuzmich.
Rob Landley [Fri, 22 Mar 2013 05:26:12 +0000 (00:26 -0500)]
uuencode/decode tests and tweaks from Erich Plondke.
Rob Landley [Fri, 22 Mar 2013 04:23:49 +0000 (23:23 -0500)]
Fix a bug in patch I fixed back in 2010 but forgot to apply here.
Rob Landley [Fri, 22 Mar 2013 01:21:12 +0000 (20:21 -0500)]
Update news page and link to ELC 2013 talk on toybox.
Rob Landley [Thu, 21 Mar 2013 05:20:02 +0000 (00:20 -0500)]
Add -a to who and switch to default y in defconfig.
Rob Landley [Wed, 20 Mar 2013 05:59:56 +0000 (00:59 -0500)]
Explain that code in the "pending" directory isn't necessarily ready for prime time.
Rob Landley [Mon, 18 Mar 2013 14:11:21 +0000 (09:11 -0500)]
uuencode and uudecode by Erich Plondke.
Rob Landley [Mon, 18 Mar 2013 14:04:51 +0000 (09:04 -0500)]
The old nbd-client I wrote in 2010. Needs cleanup.
Rob Landley [Sun, 17 Mar 2013 22:57:28 +0000 (17:57 -0500)]
Remove unused min/max macros.
Rob Landley [Sat, 16 Mar 2013 15:54:38 +0000 (10:54 -0500)]
Move mdev into the pending directory, since it's not done yet.
Rob Landley [Sat, 16 Mar 2013 01:16:25 +0000 (20:16 -0500)]
Isaac Dunham took the public domain xz-embedded code and made an xzcat. I glued all his files together into one big one and threw it in pending. It needs something between cleanup and a complete rewrite.
Rob Landley [Thu, 14 Mar 2013 14:02:37 +0000 (09:02 -0500)]
Simplify license text, as mentioned on the mailing list.
Reasoning: it was never my intent to require anybody to copy license
text into another project if they cut and pasted something out of
toybox. The "permission for any purpose" is as close to public domain
as you can get in our current screwed up legal system without making
people uncomfortable the _other_ way. (Besides, my initial reading of
that was "all copies of the source code" but that's not what it says,
and somebody pointed out that Android has "show license text" options
because paranoid lawyers think that sort of thing applies to the BINARY
version, which is nuts.)
Rob Landley [Wed, 13 Mar 2013 23:03:09 +0000 (18:03 -0500)]
Added tag 0.4.4 for changeset
52e69f6710ca
Rob Landley [Wed, 13 Mar 2013 05:39:51 +0000 (00:39 -0500)]
Remove more debug code from find.
Rob Landley [Wed, 13 Mar 2013 05:34:56 +0000 (00:34 -0500)]
A couple quick fixes to find so I can try it out.
Rob Landley [Wed, 13 Mar 2013 05:27:40 +0000 (00:27 -0500)]
Find by Gurang Shastri.
Rob Landley [Tue, 12 Mar 2013 03:23:46 +0000 (22:23 -0500)]
Compile time probe to fish O_NOFOLLOW out of linux headers when fcntl doesn't conform to posix-2008.
Rob Landley [Sat, 9 Mar 2013 18:01:36 +0000 (12:01 -0600)]
O_NOFOLLOW is specified by posix-2008 and varies by target, don't try to supply them for broken headers.
Rob Landley [Tue, 5 Mar 2013 09:06:42 +0000 (03:06 -0600)]
Call stat "stat" instead of "st" in menuconfig. Use xmalloc() instead of malloc.
perror_msg() sets return code already. Truncate long english messages that
don't get translated. Don't return int from a function hardwired to always
return 0. Don't test for that hardwired return value to change and print an
error message that can never happen and would be a duplicate anyway.
More whitespace cleanup. C does not require typecasting void *.
Remove 404 URL to stat.html that isn't in posix.
Rob Landley [Tue, 5 Mar 2013 08:48:12 +0000 (02:48 -0600)]
Fix whitespace in submitted stat command.
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.