aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* ash: DEBUG should be 0 :)Denis Vlasenko2009-03-191-2/+2
|
* ash: fix TRACE commandsDenis Vlasenko2009-03-192-9/+81
|
* ash: make evaltree save/restore int suppression depth.Denis Vlasenko2009-03-191-38/+78
| | | | | | | | | Hopefully this fixes bug 189. Not confirmed by users yet. function old new delta evaltree 809 842 +33 evalvar 1374 1376 +2
* doc updateDenis Vlasenko2009-03-191-0/+22
|
* ash: in dotrap(), do not clear gotsig[] for SIGINT if there is no handlerDenis Vlasenko2009-03-191-57/+69
| | | | | | | | | | | | | | | | | | | for it, otherwise raise interrupt gets confused later. The rest are readability fixes. function old new delta evaltreenr 817 818 +1 evaltree 817 818 +1 evalstring 88 89 +1 cmdloop 420 419 -1 evalskip 4 1 -3 breakcmd 84 81 -3 ash_main 1382 1379 -3 evalloop 183 177 -6 evalfor 231 225 -6 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/6 up/down: 3/-22) Total: -19 bytes
* df: fix FEATURE_DF_FANCY=off, FEATURE_HUMAN_READABLE=on case.Denis Vlasenko2009-03-191-7/+6
|
* ash: tentatively fix bug 189.Denis Vlasenko2009-03-191-14/+13
|
* init: test for vt terminal with VT_OPENQRY,Denis Vlasenko2009-03-191-27/+5
| | | | | | | | | | assume that anything else is TERM=vt102, not TERM=linux. (Serial console test is less correct) Tentatively closes bug 195. function old new delta init_main 946 919 -27
* ash: fix "ash -c 'exec 1>&0'" complaining that fd 0 is busyDenis Vlasenko2009-03-191-4/+10
|
* ls: make color-related code more readable. Fix a case whenDenis Vlasenko2009-03-181-19/+43
| | | | | | | | | | | | | it was working non-deterministically. function old new delta bold - 34 +34 showfiles 1508 1495 -13 fgcolor 50 34 -16 bgcolor 34 - -34 ------------------------------------------------------------------------------ (add/remove: 1/1 grow/shrink: 0/2 up/down: 34/-63) Total: -29 bytes
* httpd: add comment explaining why SERVER_NAME etc is not set.Denis Vlasenko2009-03-181-0/+2
|
* ftpd: fix command fetching to not do it in 1-byte reads;Denis Vlasenko2009-03-184-22/+81
| | | | | | | | | | | | | | | fix command de-escaping. Tested to download files with embeeded \xff and LF. libbb: tweaks for the above function old new delta ftpd_main 2231 2321 +90 xmalloc_fgets_internal 190 222 +32 xmalloc_fgets_str_len - 27 +27 xmalloc_fgets_str 7 23 +16 xmalloc_fgetline_str 10 26 +16 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 4/0 up/down: 181/0) Total: 181 bytes
* ftpd: add some commentsDenis Vlasenko2009-03-181-1/+15
|
* ftpd: trim messages (but make sure they still make sense)Denis Vlasenko2009-03-181-8/+8
| | | | | | | text data bss dec hex filename 4400 0 0 4400 1130 ftpd_old.o 4346 0 0 4346 10fa ftpd.o
* ftpd: do not use nasty tricks for re-execing if we are on MMU machine.Denis Vlasenko2009-03-181-22/+57
| | | | | | | | | | | | On NOMMU, code is alomost the same, on MMU: function old new delta handle_dir_common 223 390 +167 ftpd_main 2306 2231 -75 popen_ls 203 - -203 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 1/1 up/down: 167/-278) Total: -111 bytes
* ftpd: add support for MDTM, I see clients often use it,Denis Vlasenko2009-03-181-11/+69
| | | | | | | | | | | it may allow client-side caching. function old new delta ftpd_main 2232 2306 +74 gmtime_r - 19 +19 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 1/0 up/down: 93/0) Total: 93 bytes
* ftpd: document NLST formatDenis Vlasenko2009-03-171-0/+8
|
* ftpd: instead of wordy HELP, implement useful, and smaller, FEAT.Denis Vlasenko2009-03-171-15/+14
| | | | | | | | | (HELP is still "supported" as an alias to FEAT) text data bss dec hex filename 807331 468 7856 815655 c7227 busybox_old 807246 468 7856 815570 c71d2 busybox_unstripped
* ftpd: implement -vv verbosityDenis Vlasenko2009-03-171-9/+31
| | | | | | | | | | | | | function old new delta ftpd_main 2097 2190 +93 verbose_log - 33 +33 cmdio_write_raw 12 34 +22 cmdio_write_ok 25 45 +20 cmdio_write_error 25 45 +20 cmdio_write 62 78 +16 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 5/0 up/down: 204/0) Total: 204 bytes
* ftpd: tweak timeout codeDenis Vlasenko2009-03-171-11/+15
|
* chat: update by VladimirDenis Vlasenko2009-03-161-53/+44
| | | | | | | | | | | 1) to treat timeout more correctly (timeout affects whole send command duration, not a single char); 2) to recognize RECORD directive. function old new delta chat_main 1246 1359 +113 exitcode 1 - -1
* ftpd: fix thinko: set_nport takes port in network orderDenis Vlasenko2009-03-161-1/+1
|
* ftpd: dont use fdprintf for simple status messagesDenis Vlasenko2009-03-161-44/+65
| | | | | | | | | | function old new delta ftpd_main 2025 2055 +30 cmdio_write_ok 17 25 +8 cmdio_write_error 17 25 +8 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/0 up/down: 46/0) Total: 46 bytes
* ftpd: simplify PORT check by assuming IP = peer's IP.Denis Vlasenko2009-03-161-1/+27
| | | | | | | | Should be as safe as before this change. function old new delta ftpd_main 2115 2025 -90
* ftpd: add idle and absolute timeouts. This is a security issue,Denis Vlasenko2009-03-162-21/+52
| | | | | | | | | | | | | otherwise ftpd may end up hanging indefinitely. function old new delta timeout_handler - 110 +110 ftpd_main 2019 2115 +96 packed_usage 25662 25685 +23 handle_upload_common 306 322 +16 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 3/0 up/down: 245/0) Total: 245 bytes
* ftpd: security tightened up:Denis Vlasenko2009-03-161-89/+107
| | | | | | | | | | | | | PORT is not allowed on !IPv4 PORT must have IP == peer's IP upload is allowed only into regular files function old new delta ftpd_main 1815 2019 +204 handle_upload_common 260 306 +46 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/0 up/down: 250/0) Total: 250 bytes
* awk: fix compat issue found by gpm buildDenis Vlasenko2009-03-152-3/+19
| | | | | | | | | function old new delta as_regex 105 131 +26 hash_find 247 233 -14 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/1 up/down: 26/-14) Total: 12 bytes
* tr: support -C as synonym to -cDenis Vlasenko2009-03-151-8/+21
|
* ftpd: fix the bug where >2GB file ops report errors;Denis Vlasenko2009-03-151-65/+119
| | | | | | | | | | | | | | | | make a few simplifications; add TODOs. function old new delta port_or_pasv_was_seen - 37 +37 get_remote_transfer_fd 104 109 +5 handle_upload_common 265 260 -5 handle_dir_common 228 223 -5 popen_ls 211 203 -8 ftpd_main 1825 1815 -10 data_transfer_checks_ok 37 - -37 ------------------------------------------------------------------------------ (add/remove: 1/1 grow/shrink: 1/4 up/down: 42/-65) Total: -23 bytes
* sha: merge K[] for sha256 and 512Denis Vlasenko2009-03-151-125/+96
| | | | | | | | | | | | function old new delta sha_K - 640 +640 sha256_process_block64 440 425 -15 sha512_process_block128 1336 1283 -53 K512_lo 320 - -320 K256 320 - -320 ------------------------------------------------------------------------------ (add/remove: 1/2 grow/shrink: 0/2 up/down: 640/-708) Total: -68 bytes
* sha: fix thinko in sha512; add FAST_FUNC to sha1/sha256Denis Vlasenko2009-03-152-5/+5
| | | | | | | | | | | function old new delta sha512_process_block128 1334 1336 +2 sha1_hash 112 111 -1 sha256_process_block64 446 440 -6 sha1_process_block64 494 484 -10 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/3 up/down: 2/-17) Total: -15 bytes
* sha: merge sha1/sha256 handling (they are similar enough for this),Denis Vlasenko2009-03-152-211/+94
| | | | | | | | | | | | | | | | | | | | | shrink sha215 code function old new delta sha1_end 129 142 +13 sha1_process_block64 486 494 +8 sha256_begin 37 44 +7 sha1_begin 49 56 +7 sha1_hash 108 112 +4 ... sha512_end 204 184 -20 sha512_process_block128 1405 1334 -71 sha256_process_block64 520 446 -74 sha256_end 147 - -147 sha512_hash 297 130 -167 sha256_hash 260 - -260 ------------------------------------------------------------------------------ (add/remove: 0/2 grow/shrink: 11/9 up/down: 59/-752) Total: -693 bytes
* uname: correct cut/paste errorDenis Vlasenko2009-03-152-5/+19
| | | | | | | | | | | touch: add long options function old new delta static.longopts 137 162 +25 touch_main 221 231 +10 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/0 up/down: 35/0) Total: 35 bytes
* mount: support "-O option"; stop trying to mount swap partitionsDenis Vlasenko2009-03-144-60/+136
| | | | | | | | | | function old new delta mount_main 975 1152 +177 umount_main 640 636 -4 packed_usage 25666 25662 -4 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/2 up/down: 177/-8) Total: 169 bytes
* uname: support long optionsDenis Vlasenko2009-03-141-0/+16
|
* insmod/modprobe: do not pass NULL to kernel as module parameterDenis Vlasenko2009-03-131-2/+4
|
* tar: make FEATURE_TAR_AUTODETECT work with DESKTOP off too.Denis Vlasenko2009-03-131-2/+2
|
* sha: reduce sha256/512 context size. Make sha1/sha256 code more similarDenis Vlasenko2009-03-122-72/+79
| | | | | | | | | | | function old new delta sha512_end 182 204 +22 sha256_end 137 147 +10 sha1_hash 113 108 -5 sha1_end 143 129 -14 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/2 up/down: 32/-19) Total: 13 bytes
* sha: tiny shrinkDenis Vlasenko2009-03-121-8/+5
|
* add comment about sha testingDenis Vlasenko2009-03-121-1/+7
|
* shrink sha hashing a bit more (remove wbuflen field from ctx),Denis Vlasenko2009-03-123-136/+113
| | | | | | | | | | | | | | | | | | | | | | | | | | remove the requirement for aligned buffer function old new delta sha512_hash 262 297 +35 sha1_end 136 143 +7 passwd_main 1019 1023 +4 sha256_end 135 137 +2 count_lines 72 74 +2 sha256_hash 259 260 +1 popstring 164 158 -6 sha512_begin 88 81 -7 sha256_begin 44 37 -7 parse_expr 832 824 -8 bbunpack 446 438 -8 sha256_process_block64 529 520 -9 md5_end 166 151 -15 evaltreenr 817 802 -15 evaltree 817 802 -15 sha512_end 204 182 -22 sha512_process_block128 1444 1405 -39 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 6/11 up/down: 51/-151) Total: -100 bytes
* shrink sha hashingDenis Vlasenko2009-03-122-49/+34
| | | | | | | | | | | | | function old new delta sha512_hash 262 281 +19 sha512_end 204 221 +17 sha1_hash 128 113 -15 static.mask 16 - -16 static.bits 16 - -16 sha1_end 160 136 -24 ------------------------------------------------------------------------------ (add/remove: 0/2 grow/shrink: 2/2 up/down: 36/-71) Total: -35 bytes
* popmaildir: fix several grave bugs with using memory past end of malloc blockDenis Vlasenko2009-03-121-27/+25
|
* the -elf2flt flag can be used w/out -Wl, so drop the requirement so people ↵Mike Frysinger2009-03-121-3/+3
| | | | can use either form
* sha256/512: code shrink. Run-tested.Denis Vlasenko2009-03-112-292/+261
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta sha512_process_block128 - 1444 +1444 sha1_process_block64 - 542 +542 sha256_process_block64 - 529 +529 K512_lo - 320 +320 K256 - 320 +320 init512_lo - 32 +32 init256 - 32 +32 sha1_hash 99 128 +29 sha256_end 160 135 -25 sha1_end 189 160 -29 sha512_end 237 204 -33 sha256_begin 77 44 -33 sha512_begin 154 88 -66 sha256_hash 338 259 -79 sha512_hash 358 262 -96 sha1_compile 542 - -542 sha256_process_block 594 - -594 static.K 896 - -896 sha512_process_block 1861 - -1861 ------------------------------------------------------------------------------ (add/remove: 7/4 grow/shrink: 1/7 up/down: 3248/-4254) Total: -1006 bytes text data bss dec hex filename 808013 468 7856 816337 c74d1 busybox_old 807007 468 7856 815331 c70e3 busybox_unstripped
* *: remove LOG_NOWAITDenis Vlasenko2009-03-113-3/+3
|
* ftpd: stop unconditional logging to syslog. This was the only appletDenis Vlasenko2009-03-113-16/+27
| | | | | | | | | which was doing it. Added option -S to enable it when desired. function old new delta packed_usage 25647 25666 +19 ftpd_main 1826 1825 -1
* docs/logging_and_backgrounding.txt: new mini-docDenis Vlasenko2009-03-118-58/+143
| | | | | | | | | | | | | | | | | | | | | dnsd: remove statics, remove nerly-useless SIGINT handler crond: correct more of logfile to 0666 (as usual, umask allows user to remove unwanted bits). nameif: print errors to stderr too, not just to syslog function old new delta udhcp_read_interface 308 306 -2 ttl 4 - -4 fileconf 4 - -4 dnsentry 4 - -4 interrupt 19 - -19 dnsd_main 1463 1394 -69 ------------------------------------------------------------------------------ (add/remove: 0/4 grow/shrink: 0/2 up/down: 0/-102) Total: -102 bytes text data bss dec hex filename 808161 476 7864 816501 c7575 busybox_old 807994 468 7856 816318 c74be busybox_unstripped
* mail.c: more robust handling of SIGCHLDDenis Vlasenko2009-03-102-22/+30
| | | | | init: more robust signal handling
* ftpd + ls - timestamp = confused Mozilla. Prevent that.Denis Vlasenko2009-03-091-0/+15
|