aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* ok, last fix wasn't correct... this one is betterDenys Vlasenko2009-10-021-2/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix a typo in prev commitDenys Vlasenko2009-10-021-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Update documentation generator so that it sucks lessDenys Vlasenko2009-10-027-336/+132
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* typo fix in a comment in a testcase. oh well...Denys Vlasenko2009-09-301-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* find: add zeroing of G.xxx; ftpd - remove extraneous zeroing of G.xxxDenys Vlasenko2009-09-305-14/+17
| | | | | | Brought "G trick" to the same shape in a few more places. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash,hush: share stringDenys Vlasenko2009-09-292-8/+12
| | | | | | | | | | | | | function old new delta optschanged 133 139 +6 hush_main 997 982 -15 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/1 up/down: 6/-15) Total: -9 bytes text data bss dec hexfilename 823160 445 7668 831273 caf29busybox_old 823102 445 7668 831215 caeefbusybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* find: -follow should not error out on dandling linksDenys Vlasenko2009-09-293-39/+61
| | | | | | | | | | | | | | | | | | | | | | | function old new delta recursive_action 425 465 +40 find_main 436 465 +29 test_main 247 253 +6 need_print 1 - -1 doCommands 2523 2521 -2 compare_keys 737 735 -2 xdev_dev 4 - -4 xdev_count 4 - -4 recurse_flags 4 - -4 mkfs_vfat_main 1609 1605 -4 actions 4 - -4 fileAction 588 583 -5 ------------------------------------------------------------------------------ (add/remove: 0/5 grow/shrink: 3/4 up/down: 75/-30) Total: 45 bytes text data bss dec hex filename 822711 450 7684 830845 cad7d busybox_old 822773 445 7668 830886 cada6 busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb/lineedit: restore ^D handling for unicodeDenys Vlasenko2009-09-291-3/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb/lineedit: fix the case when we configured history to have 0 linesDenys Vlasenko2009-09-272-19/+21
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash,hush: make trap output short signal names, without SIG prefixDenys Vlasenko2009-09-276-22/+28
| | | | | | | | | function old new delta evalvar 1373 1371 -2 builtin_trap 457 441 -16 trapcmd 260 236 -24 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* find: do not recurse into directories with depth == --maxdepthDenys Vlasenko2009-09-271-10/+18
| | | | | | | | | This may avoid many, many unnecessary stat() calls function old new delta fileAction 718 758 +40 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* cp: add support for --parents and long option synonyms of short optsDenys Vlasenko2009-09-263-15/+66
| | | | | | | | | | | | | | By Ian Wienand (ianw AT vmware.com) function old new delta cp_main 257 369 +112 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/0 up/down: 112/0) Total: 112 bytes text data bss dec hex filename 823000 458 6948 830406 cabc6 busybox_old 823283 458 6948 830689 cace1 busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: do not reset to default "" traps in subshellDenys Vlasenko2009-09-253-18/+49
| | | | | | | | function old new delta reset_traps_to_defaults 164 211 +47 builtin_umask 123 121 -2 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: document a TODO. no code changesDenys Vlasenko2009-09-251-2/+10
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: better comment. no code changesDenys Vlasenko2009-09-251-1/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: even smaller `trap` codeDenys Vlasenko2009-09-251-4/+7
| | | | | | | | function old new delta evalvar 1371 1373 +2 trapcmd 347 260 -87 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: slightly better (more correct) code for "trap hack"Denys Vlasenko2009-09-251-4/+4
| | | | | | | | | function old new delta changepath 194 195 +1 evalvar 1373 1371 -2 forkchild 602 590 -12 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* login: log PAM errors to syslog, not stderrDenys Vlasenko2009-09-251-1/+3
| | | | | | By Ian Wienand (ianw AT vmware.com) Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: better handling of EXIT trap in `trap` hackDenys Vlasenko2009-09-255-9/+38
| | | | | | | | | | | | | | function old new delta forkchild - 602 +602 trapcmd 255 347 +92 ash_main 1362 1375 +13 evalvar 1371 1373 +2 popstring 140 134 -6 forkshell 835 248 -587 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 3/2 up/down: 709/-593) Total: 116 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: do not let EXIT trap to fire in `trap`Denys Vlasenko2009-09-241-1/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: small speed optimization. +10 bytes.Denys Vlasenko2009-09-241-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash,hush: fix trap reporting: s/SIGEXIT/EXIT/Denys Vlasenko2009-09-243-8/+9
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ifenslave: fix for 2.4 kernels compileDenys Vlasenko2009-09-231-2/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: more portability fixes by Dan FandrichDenys Vlasenko2009-09-2310-13/+11
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: optimize code size in strtoul callsDenys Vlasenko2009-09-238-23/+37
| | | | | | | | | | | | function old new delta bb_parse_mode 433 431 -2 rtnl_rtntype_a2n 202 198 -4 ParseField 511 498 -13 bb_init_module_24 4730 4675 -55 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/4 up/down: 0/-74) Total: -74 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tar: accept spaces at the end of header fields (compat)Denys Vlasenko2009-09-231-11/+13
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: fix `trap`Denys Vlasenko2009-09-234-8/+68
| | | | | | | | | | | | function old new delta forkshell 738 810 +72 popstring 134 140 +6 parse_command 1460 1463 +3 evalvar 1373 1371 -2 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/1 up/down: 81/-2) Total: 79 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: fix `trap`Denys Vlasenko2009-09-233-1/+52
| | | | | | | | function old new delta expand_variables 2217 2280 +63 static.argv - 8 +8 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hdparm,fdisk: reinstate BLKGETSIZE64 #defines. No code changesDenys Vlasenko2009-09-222-1/+7
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* pidof/killall: fix bug 625 (kernel threads get stale "binary name")Denys Vlasenko2009-09-221-62/+71
| | | | | | | function old new delta procps_scan 1622 1642 +20 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* df: unicode-aware column formatting. By Tomas Heinrich (theinric AT redhat.com)Denys Vlasenko2009-09-221-0/+16
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ps: fix compile breakageDenys Vlasenko2009-09-221-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sed: fix bug 623 (SEGV on some sed commands)Denys Vlasenko2009-09-221-3/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ps: conditionally enable -T on non-DESKTOP build tooDenys Vlasenko2009-09-212-28/+28
| | | | | | | function old new delta ps_main 253 274 +21 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: better wording in comments. no code changesDenys Vlasenko2009-09-211-4/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* awk: fix typo in prev commitDenys Vlasenko2009-09-211-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* awk: implement mktimeLeonid Lisovskiy2009-09-211-4/+36
| | | | | | | | | | | | | | function old new delta exec_builtin - 1466 +1466 do_mktime - 116 +116 tokenlist 441 448 +7 tokeninfo 396 400 +4 evaluate 5395 3755 -1640 ------------------------------------------------------------------------------ (add/remove: 2/0 grow/shrink: 2/1 up/down: 1593/-1640) Total: -47 bytes Signed-off-by: Leonid Lisovskiy <lly.dev@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* diff: debug macros; one trivial size optimizationDenys Vlasenko2009-09-211-4/+16
| | | | | | | | | | function old new delta diffreg 1781 1815 +34 isqrt 64 - -64 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 1/0 up/down: 34/-64) Total: -30 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* diff: fix bug 613 (diff -ub segfaults)Denys Vlasenko2009-09-211-38/+25
| | | | | | | | | | | | | function old new delta dump_unified_vec 435 457 +22 diff_main 855 860 +5 diffreg 1786 1781 -5 do_diff 428 416 -12 change 325 283 -42 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/3 up/down: 27/-59) Total: -32 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ps: document -T optionDenys Vlasenko2009-09-201-0/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* swaponoff: add uuid/label support. By Natanael CopaNatanael Copa2009-09-206-33/+51
| | | | | | | | | | | | | function old new delta swap_enable_disable 130 150 +20 resolve_mount_spec 76 96 +20 mount_main 1152 1154 +2 findfs_main 125 80 -45 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/1 up/down: 42/-45) Total: -3 bytes Signed-off-by: Natanael Copa <natanael.copa@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ar: fix long filenames handling (bug 611)Denys Vlasenko2009-09-201-37/+50
| | | | | | | | function old new delta get_header_ar 493 528 +35 read_num - 25 +25 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ps,top: add an option to show threads. +260 bytes of codeDenys Vlasenko2009-09-195-13/+74
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* dd: fix conv=noerror w/o sync to not write out zeroed blocksDenys Vlasenko2009-09-181-5/+6
| | | | | | | function old new delta dd_main 1480 1463 -17 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* we could need ssd -d (fancy)Bernhard Reutner-Fischer2009-09-171-1/+2
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* tar: do chown, not lchown to restore mode (compat)Denys Vlasenko2009-09-171-2/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tar: fix --numeric-owner, --no-same-owner, --no-same-permissions bitsDenys Vlasenko2009-09-177-45/+50
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: fix bug 585 (>"$VAR_WITH_UNICODE_CHARS" problem)Denys Vlasenko2009-09-161-2/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: preparatory cleanup. The only real changes are (unsigned char) castsDenys Vlasenko2009-09-161-50/+55
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* add a testcase for reopened bug 585 (not fixed yet)Denys Vlasenko2009-09-163-1/+21
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>