Commit Graph

  • b952835efe svlogd: fix 'SEGV on uninitialized data' and make it honor TERM Denis Vlasenko 2007-05-06 01:37:21 +00:00
  • dd4cb2b31e hush: stop generating extra empty pipes in parse stage. Denis Vlasenko 2007-05-05 15:11:40 +00:00
  • a6c467f6d1 hush: preparatory patch for removing extra empty pipes generation in parse stage. No real code change here. Denis Vlasenko 2007-05-05 15:10:52 +00:00
  • 734e5ebc93 fix -Werror compile Denis Vlasenko 2007-05-04 21:38:14 +00:00
  • ac0e5ab96a hush: fix "while true; do true; done" + ctrl-z Denis Vlasenko 2007-05-04 21:37:27 +00:00
  • 3349fc4da9 applets: fix compile-time warning Denis Vlasenko 2007-05-04 14:54:36 +00:00
  • 400c5b6fc6 hush: add parse tree debug print Denis Vlasenko 2007-05-04 13:07:27 +00:00
  • 6e6d331d97 udhcpc: stop deleting our own pidfile if we daemonize. udhcp[cd]: stop using atexit magic fir pidfile removal. Denis Vlasenko 2007-05-03 23:39:35 +00:00
  • f71d916b60 awk: guard against empty environment Denis Vlasenko 2007-05-03 22:57:56 +00:00
  • e725bfe6e0 hush: fix "true | exit 3; echo $?" bug Denis Vlasenko 2007-05-03 22:45:39 +00:00
  • f2fffd0014 hush: remove env builtin (it is buggy). Add comments Denis Vlasenko 2007-05-02 23:39:04 +00:00
  • 3bc18253b0 fix suid config handling Denis Vlasenko 2007-05-02 23:01:32 +00:00
  • f92df58d3d ifupdown: small optimization (avoid doing useless work if we are not going to update state file) Denis Vlasenko 2007-05-02 22:22:23 +00:00
  • 3c82e48923 allow people to stick custom things into Makefile.local so they dont need to update busybox files while integrating into other build systems (like uClinux-dist) Mike Frysinger 2007-05-02 22:07:03 +00:00
  • eda43d7f45 ifupdown: mke it possible to use DHCP clients different from udhcp. Denis Vlasenko 2007-05-02 22:04:38 +00:00
  • d01ff13454 hush: simplify debugging prints a little bit Denis Vlasenko 2007-05-02 21:40:23 +00:00
  • dd999a2241 klogd: remove dependency on syslogd Denis Vlasenko 2007-05-02 21:39:29 +00:00
  • bd100b7478 ifupdown: reread state file before rewriting it. Fixes "ifup started another ifup" state corruption bug. Patch by Natanael Copa <natanael.copa@gmail.com>. Denis Vlasenko 2007-05-02 21:38:44 +00:00
  • 4ac530c0ef hush: add debugging for tracing execution, add FIXME for 'true | exit 3; echo $?' case Denis Vlasenko 2007-05-02 15:35:45 +00:00
  • ef36ead370 hush: fix incorrect exitcodes without job control Denis Vlasenko 2007-05-02 15:34:47 +00:00
  • dcf4de20a1 test: code size saving, no logic changes ps: fix warning, make a bit smaller kill -l: make smaller & know much more signals Denis Vlasenko 2007-05-01 20:07:29 +00:00
  • f20de5bb42 ash,kill: use common code for kill applet/builtin Denis Vlasenko 2007-04-29 23:42:54 +00:00
  • d4728145e3 run_parts: do not check path portion of a name for "bad chars". Needed for ifupdown. Patch by "Gabriel L. Somlo" <somlo@cmu.edu> Denis Vlasenko 2007-04-29 23:38:12 +00:00
  • 08c8c1d3b3 ash: fix infinite loop on exit if tty is not there anymore Denis Vlasenko 2007-04-28 22:39:02 +00:00
  • e3f2f89891 hush: make job control and interactiveness configurable, part 2 Denis Vlasenko 2007-04-28 16:48:27 +00:00
  • b81b3df1fa hush: make job control and interactiveness configurable, part 1 Denis Vlasenko 2007-04-28 16:48:04 +00:00
  • 0937be5fa6 hush: make hush properly detect EOF on stdin (even interactive one - think about pty being destroyed) and exit. Denis Vlasenko 2007-04-28 16:47:08 +00:00
  • b5eaabb322 hush: add Ctrl-C handling to nofork case Denis Vlasenko 2007-04-28 16:45:59 +00:00
  • 3ac0e00553 hush: better signal handling across ctrl-z Denis Vlasenko 2007-04-28 16:45:22 +00:00
  • 18e19f2b0d hush: fix nofork + ctrl-Z clobbering of globals Denis Vlasenko 2007-04-28 16:43:18 +00:00
  • a6a1785a30 hush: add ctrl-Z handling for nofork'ed case Denis Vlasenko 2007-04-28 16:42:11 +00:00
  • 706fdc98c3 find_root_device: use lstat - don't follow links Denis Vlasenko 2007-04-21 23:28:03 +00:00
  • 1359da6ac7 hush: make Ctrl-Z work (at least sometimes) Denis Vlasenko 2007-04-21 23:27:30 +00:00
  • 762d35c75f hust: add a comment Denis Vlasenko 2007-04-21 17:28:51 +00:00
  • 52881e9f23 hush: fix more backgrounding bugs. Plenty of them remains still. Denis Vlasenko 2007-04-21 13:42:52 +00:00
  • 2f1bb36a55 hush: explain why "pipe; exit $?" doesn't show correct exitcode Denis Vlasenko 2007-04-21 10:01:14 +00:00
  • 87cb2db703 hush: do not print message if killed by signal; move some functions up before main() Denis Vlasenko 2007-04-21 10:00:01 +00:00
  • 54e7ffb3a4 hush: begin fixing non-functional job control Denis Vlasenko 2007-04-21 00:03:36 +00:00
  • 5f786c24e4 hush: small code shrink; style fixes Denis Vlasenko 2007-04-20 08:35:45 +00:00
  • f6250a3bee dd: NOEXEC fix dd: correct wrongly capitalized constant Denis Vlasenko 2007-04-19 20:16:14 +00:00
  • d1801a4430 dd: fix skip= parse error (spotted by Dirk Clemens <develop@cle-mens.de>) Denis Vlasenko 2007-04-19 20:08:19 +00:00
  • 9ace613406 stty: fix option parsing bug (spotted by Sascha Hauer <s.hauer@pengutronix.de>) Denis Vlasenko 2007-04-19 19:55:54 +00:00
  • 05a6d9cbb2 doc: add README on shell job control Denis Vlasenko 2007-04-19 17:26:34 +00:00
  • 8581863a1b procps: remove all global variables text data bss dec hex filename 1462 14 24 1500 5dc busybox.t2/procps/ps.o 1484 0 0 1484 5cc busybox.t3/procps/ps.o 3122 0 252 3374 d2e busybox.t1/procps/top.o 3117 0 0 3117 c2d busybox.t3/procps/top.o Denis Vlasenko 2007-04-19 14:47:11 +00:00
  • 516a0ca2dc ps: add -o tty and -o rss support 1373 14 24 1411 583 busybox.t1/procps/ps.o 1462 14 24 1500 5dc busybox.t2/procps/ps.o Denis Vlasenko 2007-04-19 14:46:14 +00:00
  • c34d35557b loop device code: readability improvement Denis Vlasenko 2007-04-19 00:09:34 +00:00
  • 3ace9fa6d8 switch_root: error_msg -> perror_msg, reduce by 22 bytes while at it. Denis Vlasenko 2007-04-18 21:40:30 +00:00
  • 088b959d00 "Unify base64 handling" is done, remove TODO Denis Vlasenko 2007-04-18 21:14:46 +00:00
  • 2ace1e3f07 make "busybox" w/o args work again, and save 10 bytes in the process. Denis Vlasenko 2007-04-18 21:00:21 +00:00
  • 55b2de71d7 hush: remove stray semicolon (should change nothing) Denis Vlasenko 2007-04-18 17:21:28 +00:00
  • 517d1aac7f ether-wake: save a few more bytes of code Denis Vlasenko 2007-04-16 23:23:33 +00:00
  • 198714c0dd ether-wake: close bug 1317. Reorder fuctions to avoid forward refs while at it Denis Vlasenko 2007-04-16 23:16:37 +00:00
  • 7d4c44e1b1 shells: remove few statics and duplicated code (much more of the same remains, alas) function old new delta doset 330 332 +2 warn 53 51 -2 onecommand 463 461 -2 ioecho 40 38 -2 forkexec 1412 1410 -2 err 81 79 -2 setdash 59 56 -3 flag 4 - -4 msh_main 1389 1384 -5 eval 388 381 -7 subgetc 759 747 -12 static.local 14 - -14 b_adduint 70 52 -18 ------------------------------------------------------------------------------ (add/remove: 0/2 grow/shrink: 1/10 up/down: 2/-73) Total: -71 bytes Denis Vlasenko 2007-04-16 22:34:39 +00:00
  • ac678ec2f1 style fixes, no code changes Denis Vlasenko 2007-04-16 22:32:04 +00:00
  • 17e3c34aa7 applet.c: ruid is needed only if FEATURE_SUID=y Denis Vlasenko 2007-04-16 20:55:27 +00:00
  • bc9d7d788b - we unconditionally need ruid. Fixes build error in line 334 Bernhard Reutner-Fischer 2007-04-16 18:25:46 +00:00
  • ab51bf4e28 - fix compilation when ENABLE_FEATURE_IP_RULE was off Bernhard Reutner-Fischer 2007-04-16 14:56:01 +00:00
  • e468ef27b7 - fix compilation if ENABLE_FEATURE_DD_IBS_OBS is off Bernhard Reutner-Fischer 2007-04-16 12:21:05 +00:00
  • 0922192740 lineedit: state->hist_file doesn't exist if !FEATURE_EDITING_SAVEHISTORY, #ifdef it out Denis Vlasenko 2007-04-15 13:21:01 +00:00
  • 84f75b0b94 doc: fix code example which may provoke warning Denis Vlasenko 2007-04-15 11:50:41 +00:00
  • 8acf521432 e2fsprogs: stop using statics in chattr. Minor code shrinkage (-130 bytes) Denis Vlasenko 2007-04-15 11:48:27 +00:00
  • be1a9d4237 deluser: add optional support for removing users from groups (by Tito <farmatito@tiscali.it>) Denis Vlasenko 2007-04-15 08:43:23 +00:00
  • 91de7c0328 update style-guide.txt Denis Vlasenko 2007-04-15 08:39:39 +00:00
  • 58394b1e29 xargs: simplify word list management Denis Vlasenko 2007-04-15 08:38:50 +00:00
  • e471275813 msh: style fixes shell/README - a place to record things about busybox shells Denis Vlasenko 2007-04-14 15:08:41 +00:00
  • 5f9468e996 lineedit: nuke two unused variables and code which sets them applets: do not even try to read config if run by real root msh: use named constants (O_RDONLY etc) in open() instead of magic numbers, other minor code size reduction. Denis Vlasenko 2007-04-14 13:22:09 +00:00
  • 8a28e620ce lash: recognize and use NOFORK applets lash,hush: fix kill buglet (didn't properly recognize ESRCH) Denis Vlasenko 2007-04-14 11:16:29 +00:00
  • bf3561fd15 lineedit: do not try to open NULL history file Denis Vlasenko 2007-04-14 10:10:40 +00:00
  • f5294e1f4c hush: use NOFORK applets as appropriate. Net reduction of code size. Denis Vlasenko 2007-04-14 10:09:57 +00:00
  • 16abcd90ae teach find_root_device to deal with /dev/ subdirs (by "Kirill K. Smirnov" <lich@math.spbu.ru>) Denis Vlasenko 2007-04-13 23:59:52 +00:00
  • 334fa9bcb5 dpkg: use nitfields which are a bit closer to typical ushort. Code size -800. Denis Vlasenko 2007-04-13 23:22:58 +00:00
  • 87468857f6 style fixes Denis Vlasenko 2007-04-13 23:22:00 +00:00
  • f7fcca4af7 sourse_route_list -> source_route_list Denis Vlasenko 2007-04-13 22:07:21 +00:00
  • 1d6a4aec2c make xsocket die with address family printed (if VERBOSE_RESOLUTION_ERRORS=y) Denis Vlasenko 2007-04-13 21:26:20 +00:00
  • fbf6dea5a2 hush: more style fixes. Denis Vlasenko 2007-04-13 19:56:56 +00:00
  • f03dbeda90 hush: comment out and replace bug in set_local_var: - if (value == 0 && ++value == 0) { + /*if (value == 0 && ++value == 0) ??? -vda */ + if (value == NULL || value[1] == '\0') { Denis Vlasenko 2007-04-13 19:55:50 +00:00
  • b636d8c18c shell/: add SUSv3 doc for fast & easy reference Denis Vlasenko 2007-04-13 19:44:22 +00:00
  • beaca811e4 fix typo in comment Denis Vlasenko 2007-04-13 16:32:26 +00:00
  • 62f0479cf1 find: add support for -delete, -path (by Natanael Copa) Denis Vlasenko 2007-04-13 10:00:12 +00:00
  • 945bd3dee8 sed: fix escaped newlines in -f; fix multiple -f and -e (broke when getopt32 was fixed to not reverse the list) Denis Vlasenko 2007-04-12 21:20:25 +00:00
  • 3211adc184 login: fixing my brainfart: xspawn(t_argv) <- was using argv! Denis Vlasenko 2007-04-12 20:33:01 +00:00
  • 3a62a737f7 make sure we free the grep data as well Mike Frysinger 2007-04-12 18:29:27 +00:00
  • b69f35effe lash: "forking" applets are actually can be treated the same way as "non-forked". Also save a bit of space on trailing NULL array elements. Denis Vlasenko 2007-04-12 17:10:45 +00:00
  • 7cced6e574 fix realloc-of-non-malloced pointer, and reduce size while at it Denis Vlasenko 2007-04-12 17:08:53 +00:00
  • 0de3c55b42 login: remove setpgrp call (makes it work from shell prompt again). login: sanitize stdio descriptors (we are suid, need to be careful!) shrink login and set_environment by ~100 bytes. Denis Vlasenko 2007-04-12 12:31:02 +00:00
  • 831a20f512 pass a copy of argv[i] to NOFORK applets (they may permute it etc). set/save/restore more shared global variables whan call one applet from another Denis Vlasenko 2007-04-12 12:27:32 +00:00
  • c98c31783c - shrink iproute a bit (-200 bytes). Untested Bernhard Reutner-Fischer 2007-04-12 11:36:56 +00:00
  • b290889f02 - add xsendto and use where appropriate; shrink iplink; sanitize libiproute a bit. -916 byte Bernhard Reutner-Fischer 2007-04-12 11:34:39 +00:00
  • 51742f4bb0 style fixes. No code changes Denis Vlasenko 2007-04-12 00:32:05 +00:00
  • 50f7f446ec bb_full_fd_action: remove potential xmalloc from NOFORK path cat: stop using stdio.h opens libbb: introduce & use open[3]_or_warn function old new delta open3_or_warn - 54 +54 bb_cat 115 144 +29 open_or_warn - 25 +25 unlzma 2404 2412 +8 chattr_main 334 339 +5 xstrtoul_range_sfx 251 255 +4 telnet_main 1514 1510 -4 static.opt 4 - -4 qgravechar 122 118 -4 fuser_add_pid 61 54 -7 fuser_add_inode 154 147 -7 writeFileToTarball 1542 1534 -8 refresh 1156 1148 -8 do_show 856 846 -10 read_leases 212 200 -12 setup_redirects 236 222 -14 iproute_list_or_flush 1582 1568 -14 read_config 427 411 -16 write_leases 284 264 -20 hash_file 338 318 -20 copy_file 1760 1740 -20 do_iproute 2610 2588 -22 bb_full_fd_action 320 269 -51 open_to_or_warn 103 49 -54 fuser_main 1660 1596 -64 .rodata 131160 131096 -64 ------------------------------------------------------------------------------ (add/remove: 2/1 grow/shrink: 4/19 up/down: 125/-423) Total: -298 bytes Denis Vlasenko 2007-04-11 23:20:53 +00:00
  • d7c8196c1b ash: fix kill -l (by Mats Erik Andersson <mats.andersson64@comhem.se>) Denis Vlasenko 2007-04-11 20:43:31 +00:00
  • 8fd371276f fix typo in doc Denis Vlasenko 2007-04-11 19:27:22 +00:00
  • 6398cf477d style fixes, no code changes. Denis Vlasenko 2007-04-11 17:04:29 +00:00
  • e4f2d064b0 rename: run_applet_by_name -> run_applet_and_exit Denis Vlasenko 2007-04-11 17:03:19 +00:00
  • 12c96a64a4 - set the scope properly. Thanks to Jean Wolter, who wrote: busybox ip and the original ip utility behave differently when setting the following route (verified with ip route show using the original ip utility): Bernhard Reutner-Fischer 2007-04-11 16:23:57 +00:00
  • 0d058361e7 Add NOFORK/NOEXEC documentation. Denis Vlasenko 2007-04-11 16:16:41 +00:00
  • 03fc408de6 fix typo in comment Denis Vlasenko 2007-04-11 07:36:31 +00:00
  • d571c08c25 fix misplaced #if Denis Vlasenko 2007-04-11 07:26:56 +00:00
  • 473dae080a add more convenient defines for [NO]MMU: "#ifndef BB_NOMMU" is a double negative Denis Vlasenko 2007-04-11 07:04:23 +00:00
  • f1a7141cfc random NOMMU fixes. compressed --help really does work for NOMMU! /me happy Denis Vlasenko 2007-04-10 23:32:37 +00:00