summaryrefslogtreecommitdiff
path: root/main.c
AgeCommit message (Expand)AuthorFilesLines
2016-03-17Revert back to upstream 0.6.0 and remove all except for dhcp relatedsubmit/tizen/20160323.053424Yu Jiung1-4/+1
2015-08-06Make multiplexer's "command not found" exit 127.Rob Landley1-1/+4
2015-07-19Tweak version number.Rob Landley1-1/+1
2015-05-03Replace android-specific hack with just signal(SIGPIPE, SIG_IGN).Rob Landley1-8/+2
2015-04-30Add default sigpipe handler for android (as suggested by Elliott Hughes).Rob Landley1-0/+9
2015-04-17Make toybox --version use the "git describe" info if it's available.Rob Landley1-0/+2
2015-04-07Adding --version broke ./toybox command list. (Oops.)Rob Landley1-2/+5
2015-04-05Add --version to multiplexer.Rob Landley1-5/+5
2015-03-06The "no }" error with find | xargs sed is because toy_init() wasn't blanking ...Rob Landley1-0/+1
2015-02-15Only discard optargs in toy_exec() after finding the command to run (otherwis...Rob Landley1-3/+3
2015-02-07Make toy_exec() check if argc is in optargs and deal with it there so we don'...Rob Landley1-0/+3
2015-01-18Remove trailing whitespace.Rob Landley1-1/+1
2015-01-03Move fflush() checking to xexit() and have exit paths in main() call that.Rob Landley1-3/+1
2014-12-31Redo option parsing infrastructure so #define FORCE_FLAGS can unzero flag mac...Rob Landley1-2/+3
2014-11-29The "re-exec to regain root permissions" logic broke the error message when c...Rob Landley1-1/+1
2014-10-26Cosmetic tweak: no trailing spaces when ./toybox lists command names.Rob Landley1-5/+3
2014-09-27Don't segfault for --help of single.sh build of OLDTOY commands that use anot...Rob Landley1-1/+3
2014-09-20Always call setlocale if I18N is enabled, so nested toy_exec() can switch it ...Rob Landley1-1/+1
2014-09-09Two problems: 1) Sometimes toy_exec() needs to re-exec to gain dropped root p...Rob Landley1-1/+7
2014-08-31Give a hint when setuid logic fails.Rob Landley1-2/+4
2014-06-21Forgot to check in main() part of TOYFLAG_LOCALE change.Rob Landley1-2/+2
2014-06-11Move toys.toycount initialization _after_ zeroing toys, so help -a works again.Rob Landley1-2/+1
2014-05-24The "not root" test happens before looking for --help, so "./sulogin --help" ...Rob Landley1-1/+4
2014-05-21Add generic_signal() handler, which sets toys.signal and writes byte to toys....Rob Landley1-0/+1
2014-04-01bugfix: the multiplexer increments optc and then the command the multiplexer ...Rob Landley1-0/+1
2014-03-28Add help -a (to show all commands) and -h (to produce HTML output).Rob Landley1-0/+2
2013-12-23Fix some issues raised (albeit indirectly) by Isaac Dunham.Rob Landley1-1/+2
2013-12-19Don't permute toys.optargs, cleanup code (xexec()) can free it.Rob Landley1-1/+1
2013-09-03Introduce libbuf analogous to toybuf but for use by lib/*.c. Change readfile(...Rob Landley1-1/+1
2013-08-30Add scripts/single.sh to build individual non-multiplexed standalone commands.Rob Landley1-1/+1
2013-08-21Fix --help option to multiplexer.Rob Landley1-11/+5
2013-07-19Start of TOYBOX_SINGLE support, for building standalone commands with no mult...Rob Landley1-22/+37
2013-06-30Add config option for --help support in all commands.Rob Landley1-2/+8
2013-05-08Add --help option to toybox command when TOYBOX_HELP is enabled.Rob Landley1-4/+12
2013-04-21Fix some comments from way back when toybox first started (in 2006), when I w...Rob Landley1-3/+3
2013-01-05Use basename() where appropriate.Rob Landley1-10/+2
2012-12-27TOYBOX_DEBUG warns about lack of suid bit when running a STAYROOT command, bu...Rob Landley1-1/+2
2012-12-23Elie De Brauwer pointed out that xputs() isn't reliably reporting errors beca...Rob Landley1-0/+1
2012-11-26Cleanup i18n support (#ifdefectomy, move global init to process launch). Teac...Rob Landley1-3/+2
2012-11-21Make internalization support optionalFelix Janda1-0/+3
2012-11-18Init global context to toybox multiplexer early so error_exit() doesn't segfa...Rob Landley1-2/+2
2012-11-16Set optc when optstring NULL.Rob Landley1-1/+4
2012-11-16Add rebound support to intercept error_exit() and longjmp instead.Rob Landley1-2/+2
2012-11-13Reindent to two spaces per level. Remove vi: directives that haven't worked r...Rob Landley1-86/+83
2012-08-14Replace TOY_LIST_LEN with more generic ARRAY_LEN()Rob Landley1-5/+4
2012-07-23Workaround longstanding glibc/ld bug, ala http://sources.redhat.com/bugzilla/...0.4.0Rob Landley1-2/+2
2012-02-18Nathan McSween convinced me compilers that inline memset() can optimize the b...Rob Landley1-1/+1
2012-02-08Switch from deprecated function to gratuitously renamed identical non-deprica...Rob Landley1-1/+1
2012-01-14Expand comments.Rob Landley1-4/+13
2010-01-06Make toy_init() reentrant, or else xexec() has funky errors.Rob Landley1-2/+4