Commit Graph

  • 9a3b7b1db7 ttysize: update copyright Denis Vlasenko 2007-08-03 08:48:44 +00:00
  • 80edead5ea udhcp: slight shrink udhcpd_main 1171 1208 +37 udhcpc_main 2363 2387 +24 dhcprelay_main 1145 1146 +1 dhcprelay_stopflag 4 1 -3 dhcprelay_signal_handler 11 8 -3 client_background 46 42 -4 udhcp_read_interface 230 211 -19 udhcp_make_pidfile 76 - -76 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 3/4 up/down: 62/-105) Total: -43 bytes text data bss dec hex filename 770052 1096 11228 782376 bf028 busybox_old 769980 1096 11228 782304 befe0 busybox_unstripped Denis Vlasenko 2007-08-02 22:31:05 +00:00
  • c01af95c39 ttysize: new applet. +200 bytes Denis Vlasenko 2007-08-02 22:23:47 +00:00
  • 1caca34aa6 start_stop_daemon: NOMMU fixes, round 2 by Alex Landau <landau_alex@yahoo.com> dhcpc: fixed "ifupdown + udhcpc_without_pidpile_creation" bug Denis Vlasenko 2007-08-02 10:14:29 +00:00
  • fc77eb54e7 patch: fix bad line ending handling ("Nguyen Thai Ngoc Duy" <pclouds@gmail.com>) Denis Vlasenko 2007-08-01 23:30:54 +00:00
  • a1b16f4d5c start_stop_daemon: NOMMU fix; smaller fixes Denis Vlasenko 2007-07-31 17:09:44 +00:00
  • f1f1b69dc1 addgroup: "disallow addgroup -g num user group"; make -g 0 work (Tito <farmatito@tiscali.it>) Denis Vlasenko 2007-07-30 12:32:37 +00:00
  • 980864de08 dd: use unsigned printf specifier for # of blocks Denis Vlasenko 2007-07-30 10:58:09 +00:00
  • 2b03e5ef31 dd: fix newly introduced bug (introduced by me) Denis Vlasenko 2007-07-29 14:59:06 +00:00
  • 6b74b0241c interface.c: code shrink (IIRC ~30 bytes) Denis Vlasenko 2007-07-29 14:17:48 +00:00
  • dee82b6b78 ash: comment non-obvious code part Denis Vlasenko 2007-07-29 14:05:27 +00:00
  • 1bab1de698 fix for suffix optimization (which was in previous commit) Denis Vlasenko 2007-07-27 15:30:39 +00:00
  • f868963c67 multiplier suffixes are short, store them directly in struct suffix_mult Denis Vlasenko 2007-07-27 15:06:25 +00:00
  • 7587870617 dd: fix bug where we assume count=INT_MAX when count is unspecified; shrink dd while at it Denis Vlasenko 2007-07-27 15:02:00 +00:00
  • 1d10aaf116 passwd: fix bug: we are trying to update shadow even if user's record is in passwd! getspnam is guilty, it lies that user record exists in shadow. Denis Vlasenko 2007-07-27 11:22:34 +00:00
  • 3734b946bf bb_getpwuid, bb_getgrgid: change order of arguments to more intuitive one; comment thoroughly when they die and when they dont. Denis Vlasenko 2007-07-27 11:20:10 +00:00
  • 661f6fad77 cal: small code shrink Denis Vlasenko 2007-07-26 11:12:51 +00:00
  • 972fa099e6 setfiles: small code size reduction (Yuichi Nakamura <ynakam@hitachisoft.jp>) Denis Vlasenko 2007-07-25 17:39:46 +00:00
  • 7ce7594fa3 ps: fix non-desktop ps -ww -- thanks rockeychu Denis Vlasenko 2007-07-25 17:27:58 +00:00
  • f4cee7a174 getopt32: fix getopt32 breakage (forgot to memset(0) it) -- thanks rockeychu Denis Vlasenko 2007-07-25 17:18:06 +00:00
  • 990d0f63ee Replace index_in_[sub]str_array with index_in_[sub]strings, which scans thru "abc\0def\0123\0\0" type strings. Saves 250 bytes. Denis Vlasenko 2007-07-24 15:54:42 +00:00
  • bcb66ec22e od: shrink a bit Denis Vlasenko 2007-07-24 12:28:03 +00:00
  • 1da77728d7 setfiles: small tweaks to usage text and code Denis Vlasenko 2007-07-24 06:17:43 +00:00
  • 3e64e98570 zcip: remove stray seed48. It's the only thing which was pulling in rand48 machinery: Denis Vlasenko 2007-07-23 22:44:15 +00:00
  • 65b8cfb2a0 add comment why preferred stack boundary is 4 on i386 Denis Vlasenko 2007-07-23 21:05:06 +00:00
  • 64a8a3bd74 chpasswd: rename long options definition to match other applets. no code changes Denis Vlasenko 2007-07-23 18:49:16 +00:00
  • 5bfcb4d5ae getopt32 must remain NOFORK-safe (no mallocs!). Using alloca and pretending stack is infinite. Unfortunately, +79 bytes. Denis Vlasenko 2007-07-23 17:40:35 +00:00
  • bdc88fdc68 rework long option handling. saves ~1.2k Denis Vlasenko 2007-07-23 17:14:14 +00:00
  • 9fe9c1a6d8 setiles: cosmetics, no real code changes Denis Vlasenko 2007-07-23 14:05:02 +00:00
  • 397137b815 setfiles,restorecon: new SELinux applets by Yuichi Nakamura <ynakam@hitachisoft.jp> Denis Vlasenko 2007-07-23 14:03:30 +00:00
  • 845db2acf3 chpasswd: fix indentation Denis Vlasenko 2007-07-21 22:29:26 +00:00
  • b71c668c57 style fix (stray space before ';') Denis Vlasenko 2007-07-21 15:08:09 +00:00
  • 82bd9ee645 fix typo in last commit Denis Vlasenko 2007-07-21 15:07:22 +00:00
  • 6cd84dac84 Three patches from FreeWRT people Denis Vlasenko 2007-07-21 14:57:54 +00:00
  • e8feca085d chpasswd: fixes for shadow password handling Denis Vlasenko 2007-07-21 13:54:26 +00:00
  • 091965768d libbb: nuke BB_GETOPT_ERROR, always die if there are mutually exclusive options find_pair 164 180 +16 passwd_main 1222 1230 +8 display_speed 91 96 +5 msh_main 1335 1339 +4 qrealloc 38 36 -2 refresh 1190 1182 -8 cut_main 543 532 -11 sendCgi 1807 1794 -13 getopt32 1063 1045 -18 arith 2077 2030 -47 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 4/6 up/down: 33/-99) Total: -66 bytes text data bss dec hex filename 781548 1168 11900 794616 c1ff8 busybox_old 781452 1168 11900 794520 c1f98 busybox_unstripped Denis Vlasenko 2007-07-21 13:27:44 +00:00
  • 557fb713e0 chpasswd: fixes and code shrink update_passwd 732 734 +2 chpasswd_main 318 292 -26 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/1 up/down: 2/-26) Total: -24 bytes text data bss dec hex filename 781564 1168 11900 794632 c2008 busybox_old 781548 1168 11900 794616 c1ff8 busybox_unstripped Denis Vlasenko 2007-07-21 13:25:28 +00:00
  • 1ec5eaecba chpasswd: now with svn add Denis Vlasenko 2007-07-20 21:29:49 +00:00
  • 21d1014b5b chpasswd: new applet by Alexander Shishkin <virtuoso@slind.org> Denis Vlasenko 2007-07-20 21:28:41 +00:00
  • 2f6ae43b9c stray trailing tabs removed Denis Vlasenko 2007-07-19 22:50:47 +00:00
  • 2a86a61c27 ifup/ifdown: make location of ifstate configurable Denis Vlasenko 2007-07-19 21:49:30 +00:00
  • 2414a96faa vi: comment out dead code Denis Vlasenko 2007-07-18 22:03:40 +00:00
  • b69e872229 Trim help text. With compressed help: -143 bytes text data bss dec hex filename 772572 1168 22680 796420 c2704 busybox_old 772444 1168 22680 796292 c2684 busybox_unstripped Denis Vlasenko 2007-07-18 21:57:24 +00:00
  • d4293c77f1 ash: fix SEGV in forkchild (jp can be NULL). here documents were affected. Denis Vlasenko 2007-07-18 21:35:43 +00:00
  • de1c8b2e92 fix unpacker testsuite to match actual output Denis Vlasenko 2007-07-18 18:47:13 +00:00
  • 960eca66b5 awk: actually do "svn add" for testsuite Denis Vlasenko 2007-07-18 18:33:18 +00:00
  • af1bd09625 awk: fix -F 'regex' bug (miscounted fields if last field is empty) Denis Vlasenko 2007-07-18 18:32:25 +00:00
  • b78c782c85 awk: style fixes; remove one xstrdup/free pair; testsuite Denis Vlasenko 2007-07-18 18:31:11 +00:00
  • 91afdf8096 vi: style fixlet Denis Vlasenko 2007-07-17 23:22:49 +00:00
  • a3d15c8be7 fix typo in prev commit :( Denis Vlasenko 2007-07-17 23:19:28 +00:00
  • 27da707d06 vi: s/argv[0]/applet_name/ Denis Vlasenko 2007-07-17 23:18:26 +00:00
  • eaabf0675f vi: multiple fixes by Natanael Copa <natanael.copa@gmail.com> * the puzzling message on error is replaced with strerror(errno) so it should be even more detailed and smaller at the same time. * merged code in edit_file() and code for ':edit <file>' in colon() into new func init_text_buffer(). Was horribly duplicate. Moved most of error/sanity checking to file_insert(). Result is that you get a proper validation (prevent reading /dev/*) and error messages for ':r <file>' * renamed 'cfn' to 'current_filename' for improved readability * merged smallint vi_readonly and readonly into bitfields into readonly_mode to save space. * added text_size variable to keep track how big the text buffer is. This is used to fix a buffer overflow. To reproduce bug: ./busybox vi TODO :r Makefile vi segfaults due to no buffer checking is done at all. som redesign is needed here but i added a check in text_hole_make() to aviod the segfault at least. * removed isblnk() and use isblank(3) instead. * fixed compiler warning by displaying the return code for :!<command> This makes things bigger than needed but since the patch reduces the overall size... (see below) * new func next_tabstop(int) merges some duplicate code. There are more cuplicode here but i couldnt find a good way to merge them. * Fix *ANNOYING* placement of cursor on '\t' characters. To reproduce: echo -e "\thello" > file1 ./busybox vi file1 Try to insert some text at the beginning of line. Text will be inserted but cursor is blinking somewhere else. The patch should make busybox vi behave more like original vi(m). Costs a few bytes but its worth it imho. * new_text() is moved into init_text_buffer() * the previously added update_ro_status() was moved info file_insert due to duplication removal mentioned above. function old new delta init_text_buffer - 245 +245 file_insert 312 420 +108 next_tabstop - 82 +82 text_hole_make 154 171 +17 do_cmd 5093 5100 +7 static.cmd_mode_indicator - 5 +5 refresh 1248 1253 +5 current_filename - 4 +4 yank_delete 161 164 +3 what_reg 96 99 +3 end_cmd_q 78 81 +3 char_insert 440 442 +2 readonly_mode - 1 +1 vi_readonly 1 - -1 setops 154 153 -1 readonly 1 - -1 vi_setops 4 1 -3 string_insert 161 158 -3 cfn 4 - -4 show_status_line 532 514 -18 readit 519 500 -19 move_to_col 161 138 -23 vi_main 495 433 -62 isblnk 75 - -75 .rodata 4751 4655 -96 edit_file 892 787 -105 new_text 125 - -125 update_ro_status 131 - -131 colon 3848 3667 -181 ------------------------------------------------------------------------------ (add/remove: 5/6 grow/shrink: 8/10 up/down: 485/-848) Total: -363 bytes text data bss dec hex filename 34751 873 4260 39884 9bcc busybox_old 34439 877 4260 39576 9a98 busybox_unstripped Denis Vlasenko 2007-07-17 23:14:07 +00:00
  • 2851082d5d ifconfig: make it work with ifaces with ifnames > 255 Denis Vlasenko 2007-07-17 22:53:05 +00:00
  • 49a128a156 remove accumulated stray trailing whitespace Denis Vlasenko 2007-07-17 21:42:59 +00:00
  • 150d2fa114 Modify method of linking against libs. Now we fisrt try all specified libs, and if it succeeds, we try to remove them one-by-one. If link succeeds, then library is thrown out. Should solve the problem with SELinux linking in libsepol even when not needed. Denis Vlasenko 2007-07-17 20:39:27 +00:00
  • c5f2426838 fix discrepancy in GPL version number. Pointed out by "Marsh David" <dmarsh@bigw.com.au> Denis Vlasenko 2007-07-16 22:21:15 +00:00
  • 110967a6f7 top: nested function allows us to reuse some code (not everyone likes them - but code does get smaller). Denis Vlasenko 2007-07-15 19:27:48 +00:00
  • 24c5fbaf42 top: make "100%" case less ugly, and shrink code while at it fmt_100percent_8 - 101 +101 .rodata 129185 129153 -32 display_status 1726 1489 -237 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/2 up/down: 101/-269) Total: -168 bytes text data bss dec hex filename 677180 3344 13936 694460 a98bc busybox_old 677020 3344 13936 694300 a981c busybox_unstripped Denis Vlasenko 2007-07-15 19:25:01 +00:00
  • c1166c3a8c top: simpler loadavg processing display_status 1787 1726 -61 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-61) Total: -61 bytes text data bss dec hex filename 677244 3344 13936 694524 a98fc busybox_old 677180 3344 13936 694460 a98bc busybox_unstripped Denis Vlasenko 2007-07-15 19:23:38 +00:00
  • 9109fbeaa1 top: truncate usernames to 8 chars Denis Vlasenko 2007-07-15 17:07:58 +00:00
  • 4652daace9 grep: implement -m MAX_MATCHES; fix help text grep_file 771 822 +51 packed_usage 22573 22610 +37 .rodata 128058 128090 +32 grep_main 842 853 +11 max_matches - 4 +4 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 4/0 up/down: 135/0) Total: 135 bytes Denis Vlasenko 2007-07-15 12:39:08 +00:00
  • 8d5aa870a6 grep: fix buglets with context printing print_line 152 170 +18 did_print_line - 1 +1 grep_file 788 771 -17 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 1/1 up/down: 19/-17) Total: 2 bytes text data bss dec hex filename 673368 2740 13968 690076 a879c busybox_old 673368 2740 13968 690076 a879c busybox_unstripped Denis Vlasenko 2007-07-15 12:38:18 +00:00
  • bdc406d15d ash: make "jobs | cat" work like in bash (was giving empty output) Denis Vlasenko 2007-07-15 01:13:25 +00:00
  • 39125bec38 adduser: close /etc/{passwd,shadow} before calling passwd etc. Spotted by Natanael Copa <natanael.copa@gmail.com> Denis Vlasenko 2007-07-14 22:51:28 +00:00
  • 59a1f30450 vi: make status line less confusing when we open non-readable files, require rood to use w! when saving non-writable files. Patch by Natanael Copa <natanael.copa@gmail.com> Denis Vlasenko 2007-07-14 22:43:10 +00:00
  • fb79a2e2cf xioctl and friends by Tito <farmatito@tiscali.it> Denis Vlasenko 2007-07-14 22:07:14 +00:00
  • fcfaf2e18a ash: small size optimization function old new delta makejob 263 270 +7 setjobctl 328 332 +4 jobscmd 96 94 -2 stoppedjobs 53 50 -3 jobctl 4 1 -3 job_warning 4 1 -3 forkshell 644 641 -3 cmdloop 422 409 -13 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/6 up/down: 11/-27) Total: -16 bytes text data bss dec hex filename 675392 2740 13968 692100 a8f84 busybox_old 675380 2740 13968 692088 a8f78 busybox_unstripped Denis Vlasenko 2007-07-14 18:45:37 +00:00
  • 8fdc4b7b06 ash: recognize -l as --login equivalent; do not recognize +-login Denis Vlasenko 2007-07-14 11:33:10 +00:00
  • 40ba9984fd ash: fix for buglet in DEBUG code (Nguyen Thai Ngoc Duy <pclouds@gmail.com>) Denis Vlasenko 2007-07-14 00:48:29 +00:00
  • 153cd695e4 FAQ: add timezone Q Denis Vlasenko 2007-07-13 15:26:53 +00:00
  • 828e2a95da nc: minor code shrink Denis Vlasenko 2007-07-13 12:37:31 +00:00
  • 8cc9cb8bc5 remove last source id Mike Frysinger 2007-07-13 05:03:46 +00:00
  • d611cccd81 add support for --symbol-prefix/-P Mike Frysinger 2007-07-13 04:37:12 +00:00
  • c540e75d74 fix applet order error Denis Vlasenko 2007-07-06 16:57:06 +00:00
  • d166f83d74 md5_sha1_sum: fix mishandling when run as /bin/md5sum (with path) chown/chgrp: completely match coreutils 6.8 wrt symlink handling Denis Vlasenko 2007-07-05 00:12:55 +00:00
  • 42b3dea9bf udhcp: many small fixes: * arpping(): smaller and even probably fixed * lots of variables/params converted: ulong -> uint32_t * uptime() nuked in favor of monotonic_sec() * udhcp_get_packet(): only one "bad vendor", simplify Denis Vlasenko 2007-07-03 15:47:50 +00:00
  • 54e19da86d correct_password: if password is 'x' or '*' and there is no shadow, use fake encrypted password 'aa' (which is guaranteed to fail password check). Denis Vlasenko 2007-07-03 10:28:46 +00:00
  • a48369183b ifupdown: kill -TERM is default, so drop -TERM ifupdown: ferror() does not set errno, don't use perror ifupdown: make netmask parsing smaller and more strict (was accepting 255.0.255.0, 255.1234.0.0 etc...) Denis Vlasenko 2007-07-03 08:26:24 +00:00
  • e190c16636 correct_password: do not print "no shadow passwd..." message Denis Vlasenko 2007-07-03 06:15:42 +00:00
  • 3483e85f6b ping: fix non-fancy ping6 Denis Vlasenko 2007-07-02 15:47:52 +00:00
  • 10aea3e84e devfsd: futher sanitization by Tito <farmatito@tiscali.it> Denis Vlasenko 2007-07-01 22:25:33 +00:00
  • c6753c1666 expr: small code shrink Denis Vlasenko 2007-07-01 18:33:35 +00:00
  • 679b41237c devfsd: indentation fixes Denis Vlasenko 2007-07-01 18:18:54 +00:00
  • 4b9b0ced30 find: fix build failure on certain configs (found by Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com>) Denis Vlasenko 2007-07-01 17:35:17 +00:00
  • 99fcc62523 find: style fix Denis Vlasenko 2007-07-01 17:29:44 +00:00
  • aba7f49a22 ps: revert wrong "optimization": (i & 1) -> i Denis Vlasenko 2007-07-01 17:25:59 +00:00
  • e6bce979bf fix comment placement (no code changes) Denis Vlasenko 2007-07-01 17:11:54 +00:00
  • c82b5108e1 udhcp: new config option "Rewrite the lease file at every new acknowledge" (Mats Erik Andersson <mats@blue2net.com> (Blue2Net AB)) udhcp: consistently treat server_config.start/end IPs as host-order fix IP parsing for 64bit machines fix unsafe hton macro usage in read_opt() do not chdir("/") when daemonizing fix help text Denis Vlasenko 2007-07-01 17:05:57 +00:00
  • dc7a5eae36 ps: fix "unused variable" warning; fix integer variable declared as char. Denis Vlasenko 2007-07-01 14:53:06 +00:00
  • 16b7cb455d web site: announce 1.6.1 Denis Vlasenko 2007-06-30 17:12:14 +00:00
  • 98ebab8b76 top,ps: improve /proc/PID/cmdinfo reading code Denis Vlasenko 2007-06-30 14:47:41 +00:00
  • 8b1409896d add bb_basename.c Denis Vlasenko 2007-06-30 10:58:08 +00:00
  • dc757aa16c introduce and use bb_basename() Denis Vlasenko 2007-06-30 08:04:05 +00:00
  • f7d07b1723 killall, pidof: use argv0 for process matching too top: show cmdline, not comm field (fixes problems with re-execed applets showing as processes with name "exe", and not being found by pidof/killall by applet name) Denis Vlasenko 2007-06-30 08:03:26 +00:00
  • 42ee26d00c procps: shrink /proc scanning code a bit Denis Vlasenko 2007-06-30 08:01:04 +00:00
  • ae7f7ebcb7 document firmware support Mike Frysinger 2007-06-28 17:13:51 +00:00
  • 12d2129d50 wget: fix bug in base64 encoding (bug 1404). +10 bytes. Denis Vlasenko 2007-06-27 21:40:07 +00:00
  • c965f4b141 devfsd: style cleanup; size reduction (Tito <farmatito@tiscali.it>) traceroute: suppress warning Denis Vlasenko 2007-06-27 00:20:38 +00:00
  • e8240f19bd uuencode: shrink Denis Vlasenko 2007-06-26 15:59:37 +00:00
  • 1fc6238ffa devfsd: fix formatting (Tito <farmatito@tiscali.it>) ash: fix SEGV if type has zero parameters Denis Vlasenko 2007-06-25 22:55:34 +00:00