log main.c @ 1676:cbb1aca81eca draft

age author description
Sat, 07 Feb 2015 16:17:44 -0600 Rob Landley Make toy_exec() check if argc is in optargs and deal with it there so we don't need a separate xexec_optargs(). draft
Sun, 18 Jan 2015 14:06:14 -0600 Rob Landley Remove trailing whitespace. draft
Sat, 03 Jan 2015 16:25:36 -0600 Rob Landley Move fflush() checking to xexit() and have exit paths in main() call that. draft
Wed, 31 Dec 2014 21:30:59 -0600 Rob Landley Redo option parsing infrastructure so #define FORCE_FLAGS can unzero flag macros for a disabled command (needed when multiple commands share infrastructure with a common set of flags). draft
Sat, 29 Nov 2014 21:11:34 -0600 Rob Landley The "re-exec to regain root permissions" logic broke the error message when calling root-only commands through the multiplexer. draft
Sun, 26 Oct 2014 12:56:41 -0500 Rob Landley Cosmetic tweak: no trailing spaces when ./toybox lists command names. draft
Sat, 27 Sep 2014 19:58:18 -0500 Rob Landley Don't segfault for --help of single.sh build of OLDTOY commands that use another command's help. draft
Sat, 20 Sep 2014 17:51:23 -0500 Rob Landley Always call setlocale if I18N is enabled, so nested toy_exec() can switch it back off if necessary. draft
Tue, 09 Sep 2014 23:42:25 -0500 Rob Landley Two problems: 1) Sometimes toy_exec() needs to re-exec to gain dropped root permissions, 2) shouldn't recurse forever without exec, stack depth increases and we may leak other resources. Limit it to ~5 levels. draft
Sun, 31 Aug 2014 11:58:39 -0500 Rob Landley Give a hint when setuid logic fails. draft
Sat, 21 Jun 2014 13:03:42 -0500 Rob Landley Forgot to check in main() part of TOYFLAG_LOCALE change. draft
Wed, 11 Jun 2014 22:13:28 -0500 Rob Landley Move toys.toycount initialization _after_ zeroing toys, so help -a works again. draft
Sat, 24 May 2014 13:50:19 -0500 Rob Landley The "not root" test happens before looking for --help, so "./sulogin --help" doesn't show it. Instead make the "not root" failure case always show help text. draft
Wed, 21 May 2014 07:24:16 -0500 Rob Landley Add generic_signal() handler, which sets toys.signal and writes byte to toys.signalfd if set. draft
Tue, 01 Apr 2014 18:18:46 -0500 Rob Landley bugfix: the multiplexer increments optc and then the command the multiplexer runs increments it further, resulting in a wrong count. Fix: zero it. draft
Fri, 28 Mar 2014 17:48:02 -0500 Rob Landley Add help -a (to show all commands) and -h (to produce HTML output). draft
Mon, 23 Dec 2013 06:49:38 -0600 Rob Landley Fix some issues raised (albeit indirectly) by Isaac Dunham. draft
Thu, 19 Dec 2013 21:38:12 -0600 Rob Landley Don't permute toys.optargs, cleanup code (xexec()) can free it. draft
Tue, 03 Sep 2013 17:56:28 -0500 Rob Landley Introduce libbuf analogous to toybuf but for use by lib/*.c. Change readfile() semantics to be able to read into an existing buffer, or malloc its own if that's NULL. draft
Fri, 30 Aug 2013 01:53:31 -0500 Rob Landley Add scripts/single.sh to build individual non-multiplexed standalone commands. draft
Wed, 21 Aug 2013 03:03:47 -0500 Rob Landley Fix --help option to multiplexer.
Fri, 19 Jul 2013 02:03:02 -0500 Rob Landley Start of TOYBOX_SINGLE support, for building standalone commands with no multiplexer.
Sun, 30 Jun 2013 15:58:24 -0500 Rob Landley Add config option for --help support in all commands.
Wed, 08 May 2013 23:19:45 -0500 Rob Landley Add --help option to toybox command when TOYBOX_HELP is enabled.
Sun, 21 Apr 2013 12:15:59 -0500 Rob Landley Fix some comments from way back when toybox first started (in 2006), when I was still cleaning busybox-isms out of my head...
Sat, 05 Jan 2013 00:44:24 -0600 Rob Landley Use basename() where appropriate.
Thu, 27 Dec 2012 17:09:17 -0600 Rob Landley 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.
Sun, 23 Dec 2012 01:25:27 -0600 Rob Landley 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.)
Mon, 26 Nov 2012 14:14:29 -0600 Rob Landley 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.
Wed, 21 Nov 2012 20:38:29 +0100 Felix Janda Make internalization support optional
Sun, 18 Nov 2012 18:52:19 -0600 Rob Landley Init global context to toybox multiplexer early so error_exit() doesn't segfault trying to print current command name, and change TOYBOX_DEBUG+TOYBOX_SUID complaint about not having the suid bit set to warning rather than exit..
Fri, 16 Nov 2012 00:46:39 -0600 Rob Landley Set optc when optstring NULL.
Fri, 16 Nov 2012 00:35:46 -0600 Rob Landley Add rebound support to intercept error_exit() and longjmp instead.
Tue, 13 Nov 2012 17:14:08 -0600 Rob Landley Reindent to two spaces per level. Remove vi: directives that haven't worked right in years (ubuntu broke its' vim implementation). Remove trailing spaces. Add/remove blank lines. Re-wordwrap in places. Update documentation with new coding style.
Tue, 14 Aug 2012 01:42:06 -0500 Rob Landley Replace TOY_LIST_LEN with more generic ARRAY_LEN()
Mon, 23 Jul 2012 23:38:34 -0500 Rob Landley Workaround longstanding glibc/ld bug, ala http://sources.redhat.com/bugzilla/show_bug.cgi?id=3400, which prevents "./toybox | wc" from producing any output when toybox was statically linked. 0.4.0
Sat, 18 Feb 2012 22:44:11 -0600 Rob Landley Nathan McSween convinced me compilers that inline memset() can optimize the bzero case pretty well.
Wed, 08 Feb 2012 19:29:14 -0600 Rob Landley Switch from deprecated function to gratuitously renamed identical non-depricated function. *shrug*
Sat, 14 Jan 2012 23:28:15 -0600 Rob Landley Expand comments.
Wed, 06 Jan 2010 05:29:17 -0600 Rob Landley Make toy_init() reentrant, or else xexec() has funky errors.
Tue, 05 Jan 2010 12:17:05 -0600 Rob Landley Add TOYBOX_SUID.
Tue, 12 Feb 2008 19:05:44 -0600 Rob Landley Add TOYFLAG_UMASK.
Tue, 22 Jan 2008 15:33:50 -0600 Rob Landley Fix crash when running unknown command via symlink.
Sun, 20 Jan 2008 17:25:44 -0600 Rob Landley Zap toylist.h, moving contents of global structures into DEFINE_GLOBALS()
Sat, 19 Jan 2008 17:43:27 -0600 Rob Landley Move NEWTOY() list from end of toylist.h to generated/newtoys.h.
Sun, 09 Dec 2007 15:35:42 -0600 Rob Landley Changeset 186 assumed that toys.exitval defaults to 0. Actually change the
Thu, 29 Nov 2007 18:14:37 -0600 Rob Landley Change command main() functions to return void, and exit(toys.exitval) from
Tue, 27 Nov 2007 01:41:32 -0600 Rob Landley Patch from Charlie Shepherd: remove extra \n from error_exit() arguments.
Thu, 15 Nov 2007 18:30:30 -0600 Rob Landley Remove trailing whitespace (thanks to Charlie Shepherd), and a couple comment
Tue, 21 Aug 2007 01:42:54 -0500 Rob Landley Tweak error message.
Thu, 07 Jun 2007 15:20:26 -0400 Rob Landley Make warning go away.
Fri, 01 Jun 2007 14:31:45 -0400 Rob Landley Show the compiler how to optimize out the option parsing logic when nothing
Fri, 01 Jun 2007 13:41:24 -0400 Rob Landley Allow applets with optarg string NULL to use toy.optargs[].
Fri, 02 Feb 2007 10:53:55 -0500 Rob Landley Trim a redundant definition that confuses older compilers. (Regression testing
Wed, 31 Jan 2007 13:31:19 -0500 Rob Landley Small cleanup to prepare for cross-compile friendly make install.
Thu, 18 Jan 2007 22:00:46 -0500 Rob Landley Save 4 bytes of stack space.
Sun, 14 Jan 2007 20:20:06 -0500 Rob Landley Add start of mke2fs/gene2fs, and some other stuff I've been working on.
Sun, 19 Nov 2006 02:49:22 -0500 Rob Landley New option parsing infrastructure (doesn't use getopt). Hook it up to
Sat, 04 Nov 2006 17:45:18 -0500 Rob Landley Add pwd. Consolidate toy list information under toylist.h.
Fri, 03 Nov 2006 00:05:52 -0500 Rob Landley Implement which. Add hello world to menuconfig. Wrap the various applet main