aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* 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>
* ls: fix bits for -T, -w and --color; make -n imply -l; fix commentsDenys Vlasenko2011-02-281-25/+20
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: strip multiple trailing slashes, not just oneDenys Vlasenko2011-02-281-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: update /etc/mtab properly on mount --moveRoman Borisov2011-02-281-9/+67
| | | | | Signed-off-by: Roman Borisov <ext-roman.borisov@nokia.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* whois: new appletPere Orga2011-02-271-0/+66
| | | | | | | | | | | | | | | function old new delta whois_main - 118 +118 pipe_out - 80 +80 packed_usage 28084 28095 +11 applet_names 2385 2391 +6 applet_main 1388 1392 +4 applet_nameofs 694 696 +2 ------------------------------------------------------------------------------ (add/remove: 3/0 grow/shrink: 4/0 up/down: 221/0) Total: 221 bytes Signed-off-by: Pere Orga <gotrunks@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* showkey: make showkey -a work on any stdinHarald Becker2011-02-271-13/+24
| | | | | | | | function old new delta showkey_main 496 513 +17 Signed-off-by: Harald Becker <ralda@gmx.de> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ls: fix one-bit-off which caused -H to behave as -hDenys Vlasenko2011-02-271-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* adduser: use better argv passing to addgroupDenys Vlasenko2011-02-271-9/+18
| | | | | | | function old new delta adduser_main 855 882 +27 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Replace "depends on PLATFORM_LINUX" with "select PLATFORM_LINUX"Denys Vlasenko2011-02-2617-92/+115
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix libiproute compile with kernel headers < 2.6.17Stefan Seyfried2011-02-261-0/+3
| | | | | Signed-off-by: Stefan Seyfried <seife+dev@b1-systems.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: ignore unknown mount options when remounting NFS mountsPeter Korsgaard2011-02-261-0/+3
| | | | | | | | | | | | | | | Don't fail on unknown nfs mount options. The kernel automatically adds a few mount options that we don't currently handle, like: sec=null|sys|krb5.. mountaddr=<ip> mountproto=tcp|udp local_lock=none|all|flock|posix Which causes a simple mount -o remount,rw <mountpoint> to fail. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: fix wrong long option namessRoman Borisov2011-02-261-8/+8
| | | | | | | | | | Fixed the --make-shared, --make-rshared, ... etc. (--make-*) options in the mount command. Now parse_mount_options() may reasonably process such options. Fixed: http://lists.busybox.net/pipermail/busybox/2011-January/074511.html Signed-off-by: Roman Borisov <ext-roman.borisov@nokia.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* iproute: fix parsing and matching of of "short" IP addrs like 10/8Denys Vlasenko2011-02-234-38/+74
| | | | | | | | | | | function old new delta print_route 1613 1813 +200 get_addr_1 209 258 +49 get_prefix 393 356 -37 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/1 up/down: 249/-37) Total: 212 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* slightly better wording in commentsDenys Vlasenko2011-02-212-4/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: fix ash-signals/signal8 testcase failureDenys Vlasenko2011-02-216-15/+152
| | | | | | | | | | | function old new delta killcmd 109 224 +115 kill_main 882 910 +28 changepath 194 195 +1 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/0 up/down: 144/0) Total: 144 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix "make install"Bernd Jendrissek2011-02-201-1/+1
| | | | | Signed-off-by: Bernd Jendrissek <bernd.jendrissek@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* blockdev: add --getsz to replace --getsizeDan Fandrich2011-02-201-6/+18
| | | | | | | | | | | | function old new delta blockdev_main 255 273 +18 bdcommands 160 176 +16 packed_usage 28142 28107 -35 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/1 up/down: 34/-35) Total: -1 bytes Signed-off-by: Dan Fandrich <dan@coneharvesters.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: reduce bloatPere Orga2011-02-191-7/+3
| | | | | Signed-off-by: Pere Orga <gotrunks@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpd: optional IP selection based on MAC hashVladislav Grishenko2011-02-162-8/+50
| | | | | | | | function old new delta find_free_or_expired_nip 153 225 +72 Signed-off-by: Vladislav Grishenko <themiron@mail.ru> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* echo: fix SEGV when run with no argsDenys Vlasenko2011-02-151-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: check for final write errors for -O FILE tooDenys Vlasenko2011-02-151-0/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Add the help text for 'position independent executable' code buildGilles Espinasse2011-02-151-1/+4
| | | | | Signed-off-by: Gilles Espinasse <g.esp@free.fr> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* modprobe: fix "modprobe -l name-with-dash"Denys Vlasenko2011-02-151-1/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* modinfo: trivial optimizationsDenys Vlasenko2011-02-151-4/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* modinfo: show firmware and depends fieldsLauri Kasanen2011-02-151-3/+5
| | | | | Signed-off-by: Lauri Kasanen <curaga@operamail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: make "wget -O FILE URL1 URL2" concatenate outputDenys Vlasenko2011-02-151-29/+37
| | | | | | | | | | | | | | Also fixes a few cases where URL1's data (like start pos) was leaking into URL2 function old new delta wget_main 2303 2321 +18 progress_meter 140 152 +12 retrieve_file_data 397 396 -1 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/1 up/down: 30/-1) Total: 29 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: fix SEGV with multiple urls and redirectionPere Orga2011-02-141-0/+1
| | | | | Signed-off-by: Pere Orga <gotrunks@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: do not print killer signal's name for SIGPIPEDenys Vlasenko2011-02-142-2/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* echo: fix ENOSPC detection and some iffy code in \NNN handlingDenys Vlasenko2011-02-147-56/+70
| | | | | | | function old new delta echo_main 330 302 -28 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpc: use more correct, and more importantly, more understandable BPF codeVladislav Grishenko2011-02-141-20/+24
| | | | | Signed-off-by: Vladislav Grishenko <themiron@mail.ru> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* reverted LINHIB0001 swap signature additionDenys Vlasenko2011-02-141-1/+0
| | | | | | | | see: https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/683605 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Move stpcpy replacement function into libbbDan Fandrich2011-02-133-17/+26
| | | | | Signed-off-by: Dan Fandrich <dan@coneharvesters.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mktemp: make it more compatible with GNU coreutils 8.4Denys Vlasenko2011-02-132-24/+36
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix bug 3223 (parameter loading problem for 2.4 kernels)Denys Vlasenko2011-02-131-8/+11
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: support multiple URLs on command line even without -O :)Denys Vlasenko2011-02-131-55/+15
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: support multiple URLs on command lineDenys Vlasenko2011-02-131-129/+160
| | | | | | | | | | | function old new delta wget_main 2190 2310 +120 progress_meter 124 140 +16 parse_url 288 304 +16 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/0 up/down: 152/0) Total: 152 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* typo fix in commentDenys Vlasenko2011-02-121-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>