aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * libpwdgrp/pwd_grp.c: use same static buffer for all getpwXX functionsDenys Vlasenko2012-01-061-62/+38
| | | | | | | | | | | | | | This should save more than 0.5k of malloced memory in applets which use those functions. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * libpwdgrp/pwd_grp.c: set opened /etc/{passwd,group,shadow} fds CLOEXECDenys Vlasenko2012-01-061-0/+3
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * platform.h: define endgrent() and endpwent() as no-ops on AndroidDenys Vlasenko2012-01-063-2/+7
| | | | | | | | | | | | Surprisingly, bionic libc seems to lack these functions. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * libbb/bb_strtonum: always set end ptr, even on error returnDenys Vlasenko2011-12-221-19/+40
| | | | | | | | | | | | | | function old new delta handle_errors 69 61 -8 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * kill: fix segfault in arguments parsingAlexey Fomenko2011-12-221-4/+7
| | | | | | | | | | Signed-off-by: Alexey Fomenko <ext-alexey.fomenko@nokia.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ash: in standalone mode, search in $PATH if /proc/self/exe doesn't existDenys Vlasenko2011-12-201-3/+9
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * makemime: tweak help text: -a HDR can be repeatedDenys Vlasenko2011-12-201-3/+3
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * httpd: don't drop/abuse QUERY_STRING when /cgi-bin/index.cgi is usedDenys Vlasenko2011-12-192-19/+34
| | | | | | | | | | Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * wget: fix use-after-free on redirectDenys Vlasenko2011-12-181-2/+4
| | | | | | | | | | | | | | function old new delta wget_main 2153 2168 +15 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * libbb: remove is_directory's argument which is always NULLDenys Vlasenko2011-12-184-16/+11
| | | | | | | | | | | | | | | | | | | | | | | | function old new delta send_cgi_and_exit 892 890 -2 ln_main 447 445 -2 handle_incoming_and_exit 2784 2780 -4 is_directory 66 59 -7 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/6 up/down: 2/-19) Total: -15 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * httpd: remove redundant NULL assignment and save one strrchr. -8 bytesDenys Vlasenko2011-12-181-8/+11
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * udhcp: finish support of classless static routes (now the correct patch!)Michael McTernan2011-12-161-18/+37
| | | | | | | | | | Signed-off-by: Michael McTernan <Michael.McTernan.2001@cs.bris.ac.uk> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * udhcp: finish support of classless static routesMichael McTernan2011-12-162-2/+13
| | | | | | | | | | | | | | | | function old new delta udhcp_str2optset 415 532 +117 Signed-off-by: Michael McTernan <Michael.McTernan.2001@cs.bris.ac.uk> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * vconfig: remove /proc/net/vlan/config checkPaulius Zaleckas2011-12-161-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | In original implementation /proc/net/vlan/config check only prints warning and does not exit. Busybox version exits if this file is not found and this prevents kernel module autoloading to work. I think it is safe to remove this check since ioctl() call will fail (with proper error code) anyway if 802.1q module is not loaded (or autoloading is off). Signed-off-by: Paulius Zaleckas <paulius.zaleckas@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * httpd: fix /../ sanitization (had one extra semicolon). rewrote itDenys Vlasenko2011-12-161-13/+19
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ash: document bash's exit code too. No code changesDenys Vlasenko2011-12-161-2/+2
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ash: add comment about bash's ENOEXEC handling. No code changesDenys Vlasenko2011-12-161-0/+6
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * *: style fixes. no code changesDenys Vlasenko2011-12-153-9/+10
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ifupdown: remove interface from state_list if iface_up failsLauri Hintsala2011-12-151-1/+1
| | | | | | | | | | | | | | | | Fix the issue where interface is set to the configured state even if configuration has failed. Add error check to state setting logic. Signed-off-by: Lauri Hintsala <lauri.hintsala@bluegiga.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * configs/android_defconfig: updateDaniel Fandrich2011-12-151-2/+4
| | | | | | | | | | Signed-off-by: Daniel Fandrich <dan@coneharvesters.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * touch: add new option FEATURE_TOUCH_SUSV3walter harms2011-12-141-8/+15
| | | | | | | | | | | | | | | | | | | | This options -d -t -r where hidden under DESKTOP. This option allows the user to enable these options for (only) touch. The patch only changes DESKTOP to FEATURE_TOUCH_SUSV3. Signed-off-by: walter harms <wharms@bfs.de> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * touch: document -t DT option in help textDenys Vlasenko2011-12-131-2/+3
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * udhcpc: sanitize hostnames in incoming packets. Closes 3979.Denys Vlasenko2011-12-083-5/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The following options are replaced with string "bad" if they contain malformed hostname: HOST_NAME, DOMAIN_NAME, NIS_DOMAIN, TFTP_SERVER_NAME function old new delta xmalloc_optname_optval 850 888 +38 attach_option 440 443 +3 len_of_option_as_string 13 14 +1 dhcp_option_lengths 13 14 +1 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 4/0 up/down: 43/0) Total: 43 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * iproute: fix help textDenys Vlasenko2011-12-061-7/+6
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * blkid: make help text show [BLOCKDEV]...Denys Vlasenko2011-12-061-3/+1
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * volume_id/get_devname: trivial code shrinkDenys Vlasenko2011-12-061-22/+19
| | | | | | | | | | | | | | | | | | | | | | | | function old new delta uuidcache_init 36 41 +5 get_devname_from_uuid 55 51 -4 get_devname_from_label 61 57 -4 display_uuid_cache 109 105 -4 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/3 up/down: 5/-12) Total: -7 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * suppress a "integer overflow in expression" waring on big endian. Closes 4405Denys Vlasenko2011-12-051-2/+3
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * Fix link failure on some platforms when PAM is enabledTristan Schmelcher2011-12-051-1/+8
| | | | | | | | | | Signed-off-by: Tristan Schmelcher <tristan_schmelcher@alumni.uwaterloo.ca> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * init: code shrink -4 bytesDenys Vlasenko2011-12-051-4/+5
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * init: utmp update of DEAD_PROCESS was misplaced, and could be skipped. Fixing.Denys Vlasenko2011-12-051-3/+5
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * httpd: small fixes to previous changePascal Bellard2011-11-291-7/+11
| | | | | | | | | | Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * httpd: make it possible to use system passwords for authPascal Bellard2011-11-291-28/+147
| | | | | | | | | | | | | | | | | | function old new delta check_user_passwd 320 467 +147 httpd_main 760 757 -3 Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * old_e2fsprogs/blkid: close the fd after we are done with itDenys Vlasenko2011-11-281-2/+7
| | | | | | | | | | | | Some people have HUGE /dev/*... Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * vi: fix [end] key handlingDenys Vlasenko2011-11-281-1/+1
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * rx: fix file corruption on block checksum failureDaniel Fandrich2011-11-231-0/+1
| | | | | | | | | | | | | | | | Rather than dropping the bad block, rx was appending it to the file. Signed-off-by: Daniel Fandrich <dan@coneharvesters.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * nommu: fix cases where we mangle argv[0][0]Denys Vlasenko2011-11-224-0/+7
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * Added a few more features to android_defconfigDaniel Fandrich2011-11-211-5/+5
| | | | | | | | | | Signed-off-by: Daniel Fandrich <dan@coneharvesters.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * Merge branch 'master' of git+ssh://busybox.net/var/lib/git/busyboxDenys Vlasenko2011-11-2112-83/+203
| |\
| | * makemime: document our current behavior. Tweak help textDenys Vlasenko2011-11-192-5/+25
| | | | | | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| | * makemime: content-type should default to application/octet-streamDenys Vlasenko2011-11-192-9/+3
| | | | | | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| | * sendmail: fix a mistake in previous commitDenys Vlasenko2011-11-191-1/+1
| | | | | | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| | * sendmail: stop doing -t unconditionally; makemime: generate 76 char base64 linesDenys Vlasenko2011-11-182-11/+13
| | | | | | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| | * hexdump: fix hexdump -n1 -ve '8/2 ""' SEGV. Closes 4478Denys Vlasenko2011-11-181-11/+14
| | | | | | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| | * udhcpc: shrink code by setting xid more economicallyDenys Vlasenko2011-11-181-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | function old new delta send_decline 90 82 -8 udhcpc_main 2649 2640 -9 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| | * libbb.h: add check for bad off_t size detectionDenys Vlasenko2011-11-171-0/+6
| | | | | | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| | * libbb.h: tighten up macro codeDenys Vlasenko2011-11-161-3/+3
| | | | | | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| | * udhcpc6: rudimentary code to export data to script; fix IAADDR parsingDenys Vlasenko2011-11-165-40/+131
| | | | | | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * | applets_sh/nologin: an applet implemented as shell scriptDenys Vlasenko2011-11-101-0/+4
| |/ | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * mount: resolve hosts to IPs in nfs mountsDenys Vlasenko2011-11-101-1/+1
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * mount: make FEATURE_MOUNT_NFS not needed for Linux 2.6.23+Denys Vlasenko2011-11-102-9/+49
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>