summaryrefslogtreecommitdiff
path: root/libbb
Commit message (Collapse)AuthorAgeFilesLines
* timeout: new applet. 370 bytes. by Roberto Foglietta.Denis Vlasenko2008-11-241-1/+1
|
* libbb: replace some memmove's with memcpy's (Ron (ron AT debian.org))Denis Vlasenko2008-11-161-6/+6
| | | | | bb_dump_dump 2674 2611 -63
* libbb: sha_crypt -123 bytesDenis Vlasenko2008-11-131-30/+34
|
* libbb/pw_encrypt_sha: -28 bytesDenis Vlasenko2008-11-131-11/+9
|
* libbb: remove glibc-style bloat from sha_crypt. -1130 bytes.Denis Vlasenko2008-11-131-4/+37
| | | | | cryptpw: add more difficult test vectors.
* gzip: fix gzip -dc case caused by using stale getopt stateDenis Vlasenko2008-11-121-6/+19
|
* du: fix "du /dir /dir" caseDenis Vlasenko2008-11-111-1/+1
| | | | | | | | | reset_ino_dev_hashtable - 84 +84 du 388 376 -12 du_main 327 301 -26 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/2 up/down: 84/-38) Total: 46 bytes
* libbb: disable a second md5 implementation which managed to creep in :)Denis Vlasenko2008-11-115-798/+767
| | | | | | | | | | | | | | | | | | | | function old new delta sha512_end 239 237 -2 sha256_end 162 160 -2 sha1_end 191 189 -2 md5_end 168 166 -2 __md5__magic 4 - -4 md5_crypt 627 621 -6 static.S 16 - -16 __md5_Init 42 - -42 static.P 64 - -64 __md5_Final 131 - -131 __md5_Update 153 - -153 static.C 268 12 -256 __md5_Transform 293 - -293 ------------------------------------------------------------------------------ (add/remove: 0/7 grow/shrink: 0/6 up/down: 0/-973) Total: -973 bytes
* libbb: add optionl support for SHA256/512 encrypted passwordsDenis Vlasenko2008-11-103-27/+281
| | | | | | | | | | | | | | | function old new delta sha_crypt - 2423 +2423 cryptpw_main 128 183 +55 to64 - 29 +29 pw_encrypt 974 1000 +26 str_rounds - 11 +11 login_main 1532 1541 +9 packed_usage 25215 25200 -15 __md5_to64 29 - -29 ------------------------------------------------------------------------------ (add/remove: 3/1 grow/shrink: 3/1 up/down: 2553/-44) Total: 2509 bytes
* sha256,sha512: new applets. +4.9kbDenis Vlasenko2008-11-101-28/+538
| | | | | | | we will require sha256/512 code for new $5$ and $6$ style password hashes anyway, they are showing up already in people's /etc/passwd...
* Typo fixesDenis Vlasenko2008-11-101-1/+1
|
* libbb: constify some data in sha1. gcc is clever enough to do it itself,Denis Vlasenko2008-11-101-22/+13
| | | | | thus no actual code changes. Also some pointless beautifuing crept in.
* libbb: add a TODO to support new SHA-based encrypted passwordsDenis Vlasenko2008-11-071-12/+5
|
* runsvdir: alternative methon of supporting runsvdir-as-init. +66 bytes.Denis Vlasenko2008-11-061-4/+4
| | | | | *: s/int/pid_t where appropriate
* *: code shrink by adding a wrapper around very common tcsetattr(0, TCSANOW, ↵Denis Vlasenko2008-11-054-6/+9
| | | | | | | | | | | | | | | | | | | | | | xx) op function old new delta tcsetattr_stdin_TCSANOW - 14 +14 set_sane_term 116 113 -3 top_main 1277 1273 -4 make_new_session 421 415 -6 rawmode 133 126 -7 reset_term 18 10 -8 die 43 35 -8 cookmode 62 54 -8 vlock_main 425 415 -10 read_line_input 3165 3155 -10 bb_askpass 357 347 -10 fsck_minix_main 3079 3065 -14 getty_main 2375 2332 -43 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/12 up/down: 14/-131) Total: -117 bytes
* nslookup: tiny shrink (-5 bytes); add comment about res_initDenis Vlasenko2008-11-041-3/+0
| | | | | inet_common: cosmetics, no code changes
* lineedit: fix bug 5824: Since version 23530 with lineedit.c,Denis Vlasenko2008-11-021-1/+2
| | | | | "fdisk" & "ed" can't work any more
* setup_environment: cd $HOME regardless of clear_env value.Denis Vlasenko2008-10-301-7/+7
|
* read_key is actually written by Rob, add him to copyright noticeDenis Vlasenko2008-10-261-2/+3
|
* read_key: add comments how Shift and Meta keys looks like.Denis Vlasenko2008-10-251-0/+5
| | | | | no code changes
* less: reuse former vi's key reading code. Improve SIGWINCH handling.Denis Vlasenko2008-10-251-6/+11
| | | | | | | | | | | | | | | function old new delta less_main 2056 2097 +41 getch_nowait 248 273 +25 read_key 310 321 +11 static.esccmds 61 69 +8 count_lines 72 74 +2 less_gets 166 142 -24 less_getch 172 43 -129 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 6/5 up/down: 91/-170) Total: -79 bytes text data bss dec hex filename
* libbb: add forgotten file from previous commit :(Denis Vlasenko2008-10-251-0/+146
|
* vi: move key reading routine out of vi into llbbbDenis Vlasenko2008-10-251-0/+1
| | | | | | | | | | | function old new delta read_key - 310 +310 .... static.esccmds 170 61 -109 readit 286 60 -226 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 9/10 up/down: 349/-367) Total: -18 bytes
* build system cleanup: rename FEATURE_AWK_MATH to FEATURE_AWK_LIBM;Denis Vlasenko2008-10-241-1/+1
| | | | | disable parsing test applet.
* ash: fix a bug in standalone mode (corrupted getopt() state)Denis Vlasenko2008-10-202-24/+34
|
* volume identification: abolish /proc/partitions and /proc/cdromsDenis Vlasenko2008-10-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | scanning. It does not catch volume managers and such. Adding even more cruft is bad, so I decided to simply scan /dev/* for any block devices. See how much better it finds devices now: # ./busybox_old blkid /dev/sda1: LABEL="/boot" UUID="7931e231-dcb4-4b6d-9301-f7354ae24061" /dev/dm-0: LABEL="Fedora-9-Live-x8" UUID="bb491e1e-1145-4f5b-b0ab-cbd2baf4f15a" /dev/dm-1: UUID="edc2a920-ef83-437e-ba64-d3b6dc851267" /dev/sdb1: UUID="6F84-ED0F" # ./busybox blkid /dev/sdb1: UUID="6F84-ED0F" /dev/root: LABEL="Fedora-9-Live-x8" UUID="bb491e1e-1145-4f5b-b0ab-cbd2baf4f15a" /dev/dm-1: UUID="edc2a920-ef83-437e-ba64-d3b6dc851267" /dev/dm-0: LABEL="Fedora-9-Live-x8" UUID="bb491e1e-1145-4f5b-b0ab-cbd2baf4f15a" /dev/sda1: LABEL="/boot" UUID="7931e231-dcb4-4b6d-9301-f7354ae24061" /dev/mapper/VolGroup00-LogVol01: UUID="edc2a920-ef83-437e-ba64-d3b6dc851267" /dev/mapper/VolGroup00-LogVol00: LABEL="Fedora-9-Live-x8" UUID="bb491e1e-1145-4f5b-b0ab-cbd2baf4f15a" function old new delta static.drive_name_string 12 - -12 append_mount_options 205 190 -15 volume_id_open_node 37 18 -19 uuidcache_check_device 485 257 -228 uuidcache_init 637 36 -601 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 0/4 up/down: 0/-875) Total: -875 bytes text data bss dec hex filename 792218 592 6648 799458 c32e2 busybox_old 791260 592 6648 798500 c2f24 busybox_unstripped
* libbb: do not reject floating point strings like ".15"Denis Vlasenko2008-10-181-1/+2
|
* lineedit: fix problems with empty commands in historyDenis Vlasenko2008-09-271-26/+47
|
* - update my name. No obj-code changes ;)Bernhard Reutner-Fischer2008-09-253-3/+3
|
* top: optional SMP support by Vineet Gupta (vineetg76 AT gmail.com)Denis Vlasenko2008-09-251-7/+26
|
* whitespace fixesDenis Vlasenko2008-09-251-1/+1
|
* libbb: document that we maybe will want to understand \e somedayDenis Vlasenko2008-09-191-7/+10
| | | | | (no code changes)
* modutils/*: rewrite by Timo Teras <timo.teras AT iki.fi>Denis Vlasenko2008-09-131-2/+0
| | | | | | | | | | | | | | | - a lot faster (linear algorithmic complexity, smaller memory foot print) - a lot smaller (the old code was overly complicated) - loading of aliases is now module-init-tools compliant - blacklisting is done correctly (-b option added) - module argument quoting done right - depmod now correctly generates modules.symbols and modules.alias add/remove: 16/21 grow/shrink: 4/6 up/down: 6930/-9316 Total: -2386 bytes text data bss dec hex filename 806039 592 6680 813311 c68ff busybox_old 803498 592 6676 810766 c5f0e busybox_unstripped
* runsvd: shrink by VladimirDenis Vlasenko2008-09-111-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | *: use unified trivial signal handler function old new delta record_signo - 10 +10 process_stdin 433 443 +10 bbunpack 383 391 +8 wc_main 598 605 +7 conescape 293 296 +3 nmeter_main 670 672 +2 fallbackSort 1717 1719 +2 bb_got_signal - 1 +1 microcom_main 713 712 -1 signalled 2 - -2 pack_gzip 1661 1659 -2 evalvar 1376 1374 -2 compare_keys 737 735 -2 parse_command 1460 1456 -4 expand 1748 1744 -4 s_term 37 29 -8 s_hangup 8 - -8 fgotsig 10 - -10 find_pair 187 169 -18 signal_handler 190 170 -20 runsvdir_main 1701 1583 -118 ------------------------------------------------------------------------------ (add/remove: 2/3 grow/shrink: 6/10 up/down: 43/-199) Total: -156 bytes
* - commentary typo fixBernhard Reutner-Fischer2008-09-051-1/+1
|
* df: add support for more options, add some coreutils 6.10 compat.Denis Vlasenko2008-08-281-12/+21
| | | | | | | | | | | | | | | by Bernhard Reutner-Fischer function old new delta df_main 664 795 +131 packed_usage 24812 24862 +50 make_human_readable_str 213 262 +49 static.ignored_mounts - 8 +8 static.unit_chars - 7 +7 static.zero_and_units 6 - -6 ------------------------------------------------------------------------------ (add/remove: 2/1 grow/shrink: 3/0 up/down: 245/-6) Total: 239 bytes
* hexdump: fix SEGV in hexdump -e ""Denis Vlasenko2008-08-231-2/+3
|
* getopt32: do not return pointer to alloca() areasDenis Vlasenko2008-08-201-1/+12
|
* linedit: fix use-after-freeDenis Vlasenko2008-08-201-2/+3
|
* libbb: getopt32() should not ever touch argv[0] (even read)Denis Vlasenko2008-08-201-1/+2
|
* libbb: fix mishandling of "all argv are opts" in getopt32()Denis Vlasenko2008-08-201-40/+24
| | | | | | | | | function old new delta top_main 1100 1095 -5 getopt32 1398 1361 -37 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-42) Total: -42 bytes
* libbb: use ptsname_r, it's smallerDenis Vlasenko2008-08-171-10/+14
| | | | | | | | | | | function old new delta xgetpty 91 81 -10 ptsname 33 - -33 text data bss dec hex filename 793828 592 6692 801112 c3958 busybox_old 793796 592 6660 801048 c3918 busybox_unstripped
* mkdir: fix "uname 0222; mkdir foo/bar" caseDenis Vlasenko2008-08-151-21/+16
| | | | | | | | (by Doug Graham <dgraham AT nortel.com>) function old new delta bb_make_directory 291 280 -11
* optimize config_read() (by Timo Teras <timo.teras AT iki.fi>)Denis Vlasenko2008-08-092-115/+90
| | | | | | | | | | | | | function old new delta bb_get_chunk_with_continuation - 176 +176 find_pair 169 187 +18 ... process_stdin 443 433 -10 config_read 549 456 -93 bb_get_chunk_from_file 139 7 -132 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 7/7 up/down: 215/-254) Total: -39 bytes
* grep: option to use GNU regex matching instead of POSIX one.Denis Vlasenko2008-08-092-2/+43
| | | | | | This fixes problems with NULs in files being scanned, but costs +800 bytes. The same can be done to sed (TODO).
* fix bug 4464 for real. I am dumb.Denis Vlasenko2008-08-061-2/+1
|
* *: use get_console_fd() as appropriate, and make it fail on open error -Denis Vlasenko2008-08-051-3/+3
| | | | | | | | | | | | | | | | get_console_fd_or_die(). function old new delta get_console_fd_or_die - 163 +163 loadkmap_main 211 201 -10 loadfont_main 440 430 -10 dumpkmap_main 218 208 -10 kbd_mode_main 158 146 -12 setkeycodes_main 156 143 -13 get_console_fd 163 - -163 ------------------------------------------------------------------------------ (add/remove: 1/1 grow/shrink: 0/5 up/down: 163/-218) Total: -55 bytes
* libbb: fix thinko in latest xrealloc_vector changeDenis Vlasenko2008-08-051-1/+1
|
* randomconfig fixesDenis Vlasenko2008-08-051-1/+5
|
* *: refactor handling of archived files. "tar f file.tar.lzma" now works too.Denis Vlasenko2008-08-052-14/+78
| | | | | | | | | | | | | | | | | | | | | | | | function old new delta unpack_Z_stream - 1229 +1229 open_zipped - 176 +176 unpack_bz2_stream_prime - 60 +60 tar_main 642 677 +35 find_main 406 418 +12 sv_main 1222 1233 +11 decode_format_string 829 837 +8 cmp_main 641 649 +8 popstring 134 140 +6 filter_accept_list_reassign 120 125 +5 parse_and_put_prompt 800 804 +4 passwd_main 1053 1049 -4 make_new_name_gunzip 119 114 -5 rpm_main 1688 1670 -18 prepare 302 283 -19 xmalloc_open_zipped_read_close 135 61 -74 uncompress 1229 - -1229 ------------------------------------------------------------------------------ (add/remove: 3/1 grow/shrink: 8/5 up/down: 1554/-1349) Total: 205 bytes