aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* hush: document a bug about aborting on sourced file error when non-interactiveDenys Vlasenko2011-03-242-0/+15
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: make parse errors in sourced file non-fatal in interactive scriptDenys Vlasenko2011-03-241-45/+52
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: fix a case where return in sourced file has no effectDenys Vlasenko2011-03-243-0/+9
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash,hush: recheck LANG before every line inputDenys Vlasenko2011-03-234-28/+52
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* don't call freeaddinfo(NULL)Vitaly Magerya2011-03-223-11/+14
| | | | | Signed-off-by: Vitaly Magerya <vmagerya@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* login: set PAM RHOSTRyan Phillips2011-03-221-0/+8
| | | | | Signed-off-by: Ryan Phillips <ryan@trolocsis.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* dd: free allocated memory if CLEANUP enabledAlexey Soloviev2011-03-221-0/+6
| | | | | Signed-off-by: Alexey Soloviev <EXT-Alexey.Soloviev@nokia.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mesg: make group/all writability configurableDenys Vlasenko2011-03-221-25/+35
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ln: explain why we use xstrdupDenys Vlasenko2011-03-211-1/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* init: fix a case where execv's 1st arg was wrongDenys Vlasenko2011-03-211-0/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: move help text to .c fileDenys Vlasenko2011-03-212-25/+26
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: fix fname_out usage wrt redirectsDenys Vlasenko2011-03-211-2/+8
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: add a test for bind+rsharedDenys Vlasenko2011-03-141-1/+38
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* pwdx: new appletPere Orga2011-03-121-0/+60
| | | | | | | | | | | | | | | function old new delta pwdx_main - 197 +197 packed_usage 28237 28261 +24 applet_names 2391 2396 +5 applet_main 1392 1396 +4 applet_nameofs 696 698 +2 applet_install_loc 174 175 +1 ------------------------------------------------------------------------------ (add/remove: 2/0 grow/shrink: 5/0 up/down: 233/0) Total: 233 bytes Signed-off-by: Pere Orga <gotrunks@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* busybox: fail if --install is not given an absolute pathDenys Vlasenko2011-03-121-4/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpc: emit "correct" secs fieldDenys Vlasenko2011-03-122-0/+17
| | | | | | | | | | | | | In theory, sending secs set to constant zero should be ok too. But some bleeping servers can actually be configured to answer ONLY if secs is bigger than a preset value (!!) http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man8/bootpd.8.html grep for "reply_threshold_seconds" function old new delta udhcpc_main 2573 2623 +50 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ls: fix handling of symlinks by option -1Denys Vlasenko2011-03-122-2/+14
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: make warning go awayDenys Vlasenko2011-03-121-4/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* chsum: fixPascal Bellard2011-03-111-0/+1
| | | | | Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* s/FAIL_DELAY/LOGIN_FAIL_DELAY/Denys Vlasenko2011-03-084-6/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* forgot to add libbb/get_shell_name.cDenys Vlasenko2011-03-081-0/+25
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* use user's shell instead of hardwired "/bin/sh" (android needs this)Denys Vlasenko2011-03-0812-28/+38
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* printenv: fix environ == NULL segfaultDenys Vlasenko2011-03-082-4/+9
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash/hush: shrink help textDenys Vlasenko2011-03-082-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ftpd: better usage textDenys Vlasenko2011-03-082-18/+18
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* kill: fix infinite loop when passed PIDs are not valid numbersPere Orga2011-03-071-0/+1
| | | | | Signed-off-by: Pere Orga <gotrunks@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* remove stray empty lineDenys Vlasenko2011-03-071-1/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash/hush: provide help textDenys Vlasenko2011-03-072-21/+40
| | | | | | | | | | | | | | | | | | | | | | | | $ ./busybox ash --help BusyBox v1.19.0.git (2011-03-07 11:25:29 CET) multi-call binary. Usage: ash [-/+OPTCHARS] [-/+o OPTNAME]... [-c 'SCRIPT' [ARG0 [ARGS]] / SCRIPT_FILE [ARGS]] Unix shell interpreter $ ./busybox hush --help BusyBox v1.19.0.git (2011-03-07 11:25:29 CET) multi-call binary. Usage: hush [-nx] [-c 'SCRIPT' [ARG0 [ARGS]] / SCRIPT_FILE [ARGS]] Unix shell interpreter function old new delta packed_usage 28163 28212 +49 setcmd 85 78 -7 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/1 up/down: 49/-7) Total: 42 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: fix execution of shell scripts without shebangDenys Vlasenko2011-03-071-10/+19
| | | | | | We were assuming #!/bin/sh, whereas we had to simply re-enter ash. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* klogd: fix the problem of delayed handling of ^C and SIGTERMDenys Vlasenko2011-03-071-1/+30
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpc: add -B optionKeith Young2011-03-071-59/+69
| | | | | | | | | | | | | function old new delta udhcpc_longopts - 262 +262 add_client_options 218 239 +21 packed_usage 28149 28163 +14 static.udhcpc_longopts 250 - -250 ------------------------------------------------------------------------------ (add/remove: 1/1 grow/shrink: 2/0 up/down: 297/-250) Total: 47 bytes Signed-off-by: Keith Young <stripydog7@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* more: fix tabs handlingDenys Vlasenko2011-03-071-3/+6
| | | | | | | function old new delta more_main 837 829 -8 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix bit rot in scripts/Makefile.IMA #2Denys Vlasenko2011-03-062-9/+7
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix bit rot in scripts/Makefile.IMADenys Vlasenko2011-03-062-3/+9
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* .gitignore: add missing ignoresBjørn Forsman2011-03-063-0/+6
| | | | | | | Ignore output files created by "make defconfig; make". Signed-off-by: Bjørn Forsman <bjorn.forsman@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* nameif: add matching by phy_address=NUM; extend help textPhil Sutter2011-03-063-44/+94
| | | | | | | | | | | | function old new delta nameif_main 618 686 +68 packed_usage 28095 28149 +54 prepend_new_eth_table 295 338 +43 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/0 up/down: 165/0) Total: 165 bytes Signed-off-by: Phil Sutter <phil.sutter@viprinet.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* nameif: fix parsing of /proc/net/dev; small code shrinkPhil Sutter2011-03-061-11/+9
| | | | | | | | function old new delta nameif_main 628 618 -10 Signed-off-by: Phil Sutter <phil.sutter@viprinet.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb/login/su: do not sanitize shell name twiceDenys Vlasenko2011-03-063-14/+7
| | | | | | | | | | | function old new delta setup_environment 191 205 +14 login_main 1002 987 -15 su_main 474 458 -16 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/2 up/down: 14/-31) Total: -17 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tr: free allocated memory in tr if CLEANUP enabledAlexey Soloviev2011-03-061-0/+6
| | | | | Signed-off-by: Alexey Soloviev <EXT-Alexey.Soloviev@nokia.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* improve --install operation in chroot jailsDenys Vlasenko2011-03-061-5/+16
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* xargs: support --no-run-if-empty (synonym to -r)Denys Vlasenko2011-03-031-6/+13
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* don't leak malloced variables in the loop; remove double allocAlexey Fomenko2011-03-022-3/+6
| | | | | Signed-off-by: Alexey Fomenko <ext-alexey.fomenko@nokia.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* convert "do {...} while (1);" -> "while (1) {...}"Denys Vlasenko2011-03-024-16/+17
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* add missing fclose'sAlexey Fomenko2011-03-021-0/+2
| | | | | Signed-off-by: Alexey Fomenko <ext-alexey.fomenko@nokia.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tar: skip leading / and handle names like abc/..////def -> def (not ///def)Denys Vlasenko2011-03-024-59/+59
| | | | | | | | | function old new delta strip_unsafe_prefix - 105 +105 writeFileToTarball 557 520 -37 get_header_tar 1545 1462 -83 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: remove dead code in getopt32. -7 bytesAlexey Fomenko2011-03-011-10/+5
| | | | | Signed-off-by: Alexey Fomenko <ext-alexey.fomenko@nokia.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tar: on extract, everything up to and including last ".." is strippedDenys Vlasenko2011-03-013-5/+41
| | | | | | | function old new delta get_header_tar 1493 1545 +52 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: make user/group name cache strings longer (~27 chars)Denys Vlasenko2011-03-013-12/+12
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ls: widen -s (1k blocks) column from 4 to 6Denys Vlasenko2011-03-011-1/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ls: -g implies -lDenys Vlasenko2011-02-281-5/+10
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>