aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* getopt: simple code shrink; expand help textDenys Vlasenko2012-02-091-16/+36
| | | | | | | | function old new delta packed_usage 28978 29184 +206 getopt_main 656 632 -24 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Make unix (local) sockets work without IPv6 enabledJonh Wendell2012-02-092-12/+9
| | | | | | | | | | | | | | | | | The xsocket_type() function had an optional "family" argument that was enabled only if IPv6 is enabled. In the case of the function was called with a valid AF_UNIX argument, and IPv6 is disabled, this argument was silently ignored. This patch makes the "family" argument mandatory, while keeping the old behavior i.e., if AF_UNSPEC is passed, we try first IPv6 (if it's enabled) and fallback to IPv4. Also I changed all callers of xsocket_type() to reflect its new interface. Signed-off-by: Jonh Wendell <jonh.wendell@vexcorp.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mdev: add a comment. no code changesDenys Vlasenko2012-02-061-1/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* acpid: do not install handlers for fatal signalsDenys Vlasenko2012-02-051-2/+6
| | | | | | For acpid, it's ok to die at once. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* cttyhack: handle multiple consoles found in sysfsAaro Koskinen2012-02-041-3/+10
| | | | | | | | | | | | If multiple consoles are found from the sysfs file, cttyhack fails: cttyhack: can't open '/dev/tty0 ttyS0': No such file or directory In such cases take the last one as the kernel will use that one for /dev/console. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* httpd: fix sendfile of files larger than 2 Gb. Closes 4754Denys Vlasenko2012-02-041-1/+1
| | | | | | | | When built with "sendfile" support, httpd was unable to send large files (>2 GB) in one single connection, terminating it before the full file has been sent. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tweak comment, no code changesDenys Vlasenko2012-02-021-3/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* httpd: fix MD5-encrypted-in-httpd.conf password logicDenys Vlasenko2012-02-012-27/+39
| | | | | | | function old new delta check_user_passwd 467 492 +25 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* modprobe: accept -b even if blacklist functionality is disabledFelipe Contreras2012-01-312-8/+9
| | | | | Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* vi: add ":prev" command supportDennis Groenen2012-01-311-11/+18
| | | | | | | | | | | function old new delta colon 2844 2891 +47 vi_main 243 255 +12 text_yank 54 56 +2 refresh 780 774 -6 Signed-off-by: Dennis Groenen <tj.groenen@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* vi: move mark[i] pointers if text[] moves after reallocDenys Vlasenko2012-01-311-27/+37
| | | | | | | | | | While at it, optimized :s/find/repl/ a bit function old new delta text_hole_make 120 150 +30 colon 2848 2844 -4 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* login: -f should not ask for password even with PAMSergey Naumov2012-01-301-8/+10
| | | | | Signed-off-by: Sergey Naumov <sknaumov@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* init: add a segv debugging aid, disabled by defaultDenys Vlasenko2012-01-301-0/+51
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* gen_build_files.sh: exclude hidden directoriesPaulius Zaleckas2012-01-301-2/+5
| | | | | | | | | | | | | | | | | I am using quilt to manage patches internally. Quilt creates dir .pc and stores unmodified files there. Since I made change in one of Config.src quilt made a copy in .pc/xxx.patch/xxx/Config.src. When I run make it calls gen_build_files.sh and it generates .pc/xxx.patch/xxx/Config.in. Now when I want to pop patch quilt thinks I have made changes to original xxx/Config.in. IMO the best solution is just to ignore hidden directories in gen_build_files.sh. This also results in shorter build time in case busybox is under git/svn versioning, since it avoids searching many directories for Config.src. Signed-off-by: Paulius Zaleckas <paulius.zaleckas@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mdev: fix wrong sizeofJavier Viguera2012-01-301-1/+1
| | | | | Signed-off-by: Javier Viguera <javier.viguera@digi.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* bootchartd: add process accounting featureQuentin Casasnovas2012-01-181-15/+24
| | | | | | | | | | | | function old new delta bootchartd_main 962 1088 +126 finalize 294 357 +63 acct - 33 +33 ------------------------------------------------------------------------------ (add/remove: 2/0 grow/shrink: 2/0 up/down: 222/0) Total: 222 bytes Signed-off-by: Quentin Casasnovas <quentin.casasnovas@mathembedded.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* find_mount_point: fix find_mount_point for char devicesJavier Viguera2012-01-181-1/+2
| | | | | | | | | | | | | | | | | | | This allows to find mount points of 'char' devices such as UBI volumes which otherwise fail for example with 'df' command: / # df Filesystem 1K-blocks Used Available Use% Mounted on /dev/root 72091984 12360980 56068924 18% / devtmpfs 115236 4 115232 0% /dev tmpfs 28672 32 28640 0% /tmp /dev/ubi0_0 360268 18348 341920 5% /tmp/mnt/userfs / # df /dev/ubi0_0 Filesystem 1K-blocks Used Available Use% Mounted on devtmpfs 115236 4 115232 0% /dev Signed-off-by: Javier Viguera <javier.viguera@digi.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* vconfig: fix help text; small code shrink. Closes 4658Denys Vlasenko2012-01-161-55/+41
| | | | | | | | | function old new delta xfind_str 45 46 +1 vconfig_main 228 223 -5 packed_usage 28980 28954 -26 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: better comments on termios manipulations. No code changes.Denys Vlasenko2012-01-153-5/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* shell_builtin_read: set cc[VMIN] to 1; lineedit: don't clear c_cc[VINTR]Denys Vlasenko2012-01-152-7/+16
| | | | | | | | | | | | | First change fixes "read -n NUM". Apparently poll() won't report data availability if cc[VMIN] > 1 until there are at least cc[VMIN] bytes. function old new delta read_line_input 3885 3877 -8 shell_builtin_read 1097 1087 -10 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-18) Total: -18 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sed: fix possible case of signed char bug; expand debugging printoutsDenys Vlasenko2012-01-151-13/+25
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mke2fs: do not zero out first kilobyte. Closes 3247Denys Vlasenko2012-01-111-1/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mdev: do not treat non-leading '#' chars as start of comment. Closes 4676Denys Vlasenko2012-01-113-4/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* acpid: close fds which are reported as dead (POLLERR/POLLHUP/POLLNVAL) by poll.Denys Vlasenko2012-01-091-19/+35
| | | | | | | | function old new delta acpid_main 1159 1229 +70 packed_usage 28977 28980 +3 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* passwd,cryptpw: make default encryption algorithm configurableDenys Vlasenko2012-01-084-2/+11
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Move include <shadow.h> close to pwd.h and grp.h includesDenys Vlasenko2012-01-081-8/+8
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Move Adroid endgrent() and endpwent() NOPS to libbb.hDenys Vlasenko2012-01-082-7/+6
| | | | | | They should be after includes of pwd.h and grp.h Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* 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>