1
0
mirror of synced 2026-11-02 21:34:33 +03:00

Commit Graph

  • 50f7f446ec bb_full_fd_action: remove potential xmalloc from NOFORK path cat: stop using stdio.h opens libbb: introduce & use open[3]_or_warn function old new delta open3_or_warn - 54 +54 bb_cat 115 144 +29 open_or_warn - 25 +25 unlzma 2404 2412 +8 chattr_main 334 339 +5 xstrtoul_range_sfx 251 255 +4 telnet_main 1514 1510 -4 static.opt 4 - -4 qgravechar 122 118 -4 fuser_add_pid 61 54 -7 fuser_add_inode 154 147 -7 writeFileToTarball 1542 1534 -8 refresh 1156 1148 -8 do_show 856 846 -10 read_leases 212 200 -12 setup_redirects 236 222 -14 iproute_list_or_flush 1582 1568 -14 read_config 427 411 -16 write_leases 284 264 -20 hash_file 338 318 -20 copy_file 1760 1740 -20 do_iproute 2610 2588 -22 bb_full_fd_action 320 269 -51 open_to_or_warn 103 49 -54 fuser_main 1660 1596 -64 .rodata 131160 131096 -64 ------------------------------------------------------------------------------ (add/remove: 2/1 grow/shrink: 4/19 up/down: 125/-423) Total: -298 bytes Denis Vlasenko 2007-04-11 23:20:53 +00:00
  • d7c8196c1b ash: fix kill -l (by Mats Erik Andersson <mats.andersson64@comhem.se>) Denis Vlasenko 2007-04-11 20:43:31 +00:00
  • 8fd371276f fix typo in doc Denis Vlasenko 2007-04-11 19:27:22 +00:00
  • 6398cf477d style fixes, no code changes. Denis Vlasenko 2007-04-11 17:04:29 +00:00
  • e4f2d064b0 rename: run_applet_by_name -> run_applet_and_exit Denis Vlasenko 2007-04-11 17:03:19 +00:00
  • 12c96a64a4 - set the scope properly. Thanks to Jean Wolter, who wrote: busybox ip and the original ip utility behave differently when setting the following route (verified with ip route show using the original ip utility): Bernhard Reutner-Fischer 2007-04-11 16:23:57 +00:00
  • 0d058361e7 Add NOFORK/NOEXEC documentation. Denis Vlasenko 2007-04-11 16:16:41 +00:00
  • 03fc408de6 fix typo in comment Denis Vlasenko 2007-04-11 07:36:31 +00:00
  • d571c08c25 fix misplaced #if Denis Vlasenko 2007-04-11 07:26:56 +00:00
  • 473dae080a add more convenient defines for [NO]MMU: "#ifndef BB_NOMMU" is a double negative Denis Vlasenko 2007-04-11 07:04:23 +00:00
  • f1a7141cfc random NOMMU fixes. compressed --help really does work for NOMMU! /me happy Denis Vlasenko 2007-04-10 23:32:37 +00:00
  • 80d14beae9 Rename two config options: FEATURE_SH_STANDALONE_SHELL => FEATURE_SH_STANDALONE FEATURE_EXEC_PREFER_APPLETS => FEATURE_PREFER_APPLETS Make SH_STANDALONE depend on PREFER_APPLETS. getopt.c: more randomconfig-induced fixes Denis Vlasenko 2007-04-10 23:03:30 +00:00
  • 8905496444 xargs: fix my brain fart (resulted in memory leak) Denis Vlasenko 2007-04-10 21:41:16 +00:00
  • c6758a07c6 make compressed help code NOMMU- and NOFORK-friendly - no forking anymore, bunzip2 unpack routine now does all it in memory. Denis Vlasenko 2007-04-10 21:40:19 +00:00
  • 335b63d8d1 make a few struct bb_applet members conditional rename sllep_and_die -> xfunc_die make fflush_stdout_and_exit NOFORK-safe fix some buglets found by randomconfig Denis Vlasenko 2007-04-10 21:38:30 +00:00
  • 07c394e69b - mv ip*_main into ip.c; use a dispatcher to save on needless duplication. Saves a minor 12b. Bernhard Reutner-Fischer 2007-04-10 20:11:12 +00:00
  • 99003b8a87 - use enum for the OPs as suggested by vda. No obj-code changes. Bernhard Reutner-Fischer 2007-04-10 19:30:50 +00:00
  • f73cac8d3d - forgot this hunk that corrects the usage text of ip Bernhard Reutner-Fischer 2007-04-10 19:00:08 +00:00
  • e87d7955f8 - rewrite the ip applet to be less bloaty - mark libiproute's matches() as deprecated. Convert to index_in_(sub)str_array()! text data bss dec hex filename 314 0 0 314 13a ip.o.orig 200 0 0 200 c8 ip.o Using a smallint for the key would save another byte. Bernhard Reutner-Fischer 2007-04-10 18:43:27 +00:00
  • 51f7ab6162 - add ATTRIBUTE_DEPRECATED for functions that should be removed in the future. This is ment to provide means to point at cruft marked for cleanup. Bernhard Reutner-Fischer 2007-04-10 18:40:05 +00:00
  • 246b5c3916 one-liner: fix indentation Denis Vlasenko 2007-04-10 17:18:12 +00:00
  • b38cf3ff8a bunzip2: big style cleanup. No code changes apart from one s/write/safe_write/ (verified with objdump). Denis Vlasenko 2007-04-10 17:16:33 +00:00
  • a9d7d24e1f echo: fix regression ("echo" with no arguments didn't print newline. echo: use fputs if no options are given. Code growth ~15 bytes. Denis Vlasenko 2007-04-10 16:34:00 +00:00
  • 99912ca733 audit small applets and mark some of them as NOFORK. Put big scary warnings in relevant places. Denis Vlasenko 2007-04-10 15:43:37 +00:00
  • ff131b980d style fixes. No code changes. Denis Vlasenko 2007-04-10 15:42:06 +00:00
  • 163516da3a - very minor shrinkage (-3b) Bernhard Reutner-Fischer 2007-04-10 14:16:19 +00:00
  • de17ece1db - use skip_non_whitespace() where appropriate Bernhard Reutner-Fischer 2007-04-10 09:38:35 +00:00
  • 8b1fab2879 - add prototype for str_tolower() Bernhard Reutner-Fischer 2007-04-10 09:38:07 +00:00
  • 7e8a53a335 - add libbb function str_tolower to convert a string to lowercase. - shrink wget a bit Bernhard Reutner-Fischer 2007-04-10 09:37:29 +00:00
  • 3f3aa2a57d make xfunctions optionally longjump instead of exit. use it for making NOFORK more practical. touch: make it a NOFORK applet Denis Vlasenko 2007-04-09 21:35:07 +00:00
  • cd7001f705 factor out NOFORK/NOEXEC code from find. Use it for xargs too. Denis Vlasenko 2007-04-09 21:32:30 +00:00
  • 1b4b2cb20e xargs: shrink code, ~80 bytes applets.h: +#undef APPLET_NOEXEC Denis Vlasenko 2007-04-09 21:30:53 +00:00
  • 53d445aa75 wait4pid: if passed with pid < 0, do not set errno - it is already set by exec! Denis Vlasenko 2007-04-09 13:21:33 +00:00
  • 7e754f12d3 Implement first instance of NOFORK applet - echo find: use NOFORK/NOEXEC; small -exec buglet also eliminated vfork_daemon_rexec: honor PREFER_APPLETS echo: small size improvements Denis Vlasenko 2007-04-09 13:04:50 +00:00
  • 2dfdd44d9d busybox: fix "<applet>: applet not found" message Denis Vlasenko 2007-04-09 03:29:43 +00:00
  • c44ab01b75 Improve STANDALONE_SHELL. "safe" applets are renamed NOEXEC applets and now this fact is recorded in applets.h, not ash.c. Denis Vlasenko 2007-04-09 03:11:58 +00:00
  • 95cb3263ae msh: smallish code shrinkage; cosmetics Denis Vlasenko 2007-04-09 03:06:34 +00:00
  • 32b633aa3f merge busybox.c into applets.c Denis Vlasenko 2007-04-09 03:05:48 +00:00
  • 786834bcee applets.h: de-obfuscate Denis Vlasenko 2007-04-08 17:30:10 +00:00
  • 240a1cfbbe add some missed statics on constant objects. fix few #ifndef ENABLE_xxx Denis Vlasenko 2007-04-08 16:07:02 +00:00
  • 5694d5f8d2 adding small script, mostly for documentational purposes Denis Vlasenko 2007-04-08 15:12:21 +00:00
  • 8d9f495d68 getopt32: fix llist_t options ordering. llist_rev is not unused. Denis Vlasenko 2007-04-08 15:08:42 +00:00
  • b04b4357ff find: fix -prune more. Add big comment about it. Denis Vlasenko 2007-04-08 11:10:43 +00:00
  • bbd695d801 find: fix handling of -prune recursive_actions: uppercase flag constants Denis Vlasenko 2007-04-08 10:52:28 +00:00
  • ca3484103e busybox.net: micro fix Denis Vlasenko 2007-04-07 10:49:02 +00:00
  • 1ae63fc1bc busybox.net: update "screenshot" Denis Vlasenko 2007-04-07 10:46:33 +00:00
  • 9c146a91d3 getopt: use getopt32 for option parsing - inspired by patch by Mats Erik Andersson <mats.andersson64@comhem.se> function old new delta getopt_main 809 810 +1 static.BUFFER 4 - -4 shell 8 4 -4 quote 4 - -4 quiet_output 4 - -4 quiet_errors 4 - -4 long_options_nr 4 - -4 long_options_length 4 - -4 long_options 388 384 -4 alternative 4 - -4 shortopts 15 - -15 normalize 243 220 -23 .rodata 131832 131800 -32 add_longopt 200 - -200 ------------------------------------------------------------------------------ (add/remove: 0/9 grow/shrink: 1/4 up/down: 1/-306) Total: -305 bytes Denis Vlasenko 2007-04-07 10:25:04 +00:00
  • fdf63a30fe docs: "how to add a patch" Denis Vlasenko 2007-04-07 09:35:56 +00:00
  • 540a2a1f3b libiproute: audit callgraph, shortcut error paths into die() functions. Kill a few statics, made other globals smaller: oneline is smallint, _SL_ is char Denis Vlasenko 2007-04-07 01:14:45 +00:00
  • fbd2918f5c udhcp: MAC_BCAST_ADDR and blank_chaddr are in fact constant, move to rodata. a few global variables reduced to smallints function old new delta add_lease 75 227 +152 static.blank_chaddr - 16 +16 MAC_BCAST_ADDR - 6 +6 sockfd 4 8 +4 udhcp_run_script 1153 1155 +2 state 8 5 -3 listen_mode 4 1 -3 perform_release 152 148 -4 fd 8 4 -4 blank_chaddr 16 - -16 udhcpc_main 2518 2497 -21 .rodata 131864 131832 -32 oldest_expired_lease 61 - -61 clear_lease 127 - -127 ------------------------------------------------------------------------------ (add/remove: 2/3 grow/shrink: 3/6 up/down: 180/-271) Total: -91 bytes Denis Vlasenko 2007-04-07 01:05:47 +00:00
  • bb5b01c7c7 comm: eliminate statics Denis Vlasenko 2007-04-07 00:45:27 +00:00
  • 04c99ebb4f random small shrinkage and elimination of statics Denis Vlasenko 2007-04-07 00:44:31 +00:00
  • 19507f0869 nc: code shrinkage, bugfixes. -50 bytes code size Denis Vlasenko 2007-04-06 10:41:05 +00:00
  • 5a30d59c3d svn add match_fstype.c :( Denis Vlasenko 2007-04-05 22:19:43 +00:00
  • bf295dd5b6 [u]mount: extend -t option (Roy Marples <uberlord@gentoo.org>) Denis Vlasenko 2007-04-05 21:57:47 +00:00
  • df5bbb938a diff: fix segfault on empty dirs (Peter Korsgaard <peter.korsgaard@barco.com>) Denis Vlasenko 2007-04-05 21:29:42 +00:00
  • 1bb552b1d9 libbb: add xunlink() patch: do not try to delete same file twice Denis Vlasenko 2007-04-05 21:25:15 +00:00
  • 9020d850bf less intrusive export of FLTFLAGS Mike Frysinger 2007-04-05 21:14:29 +00:00
  • 568d8c9a5c set default FLTFLAGS for a fatty stack Mike Frysinger 2007-04-05 21:13:55 +00:00
  • c7b10dc037 set default FLTFLAGS for a fatty stack Mike Frysinger 2007-04-05 21:10:59 +00:00
  • 2f7b923f5c find: improve usage text (Natanael Copa <natanael.copa@gmail.com>) Denis Vlasenko 2007-04-05 21:01:06 +00:00
  • 5f42d26865 nc: missed exit() in signal handler Denis Vlasenko 2007-04-05 20:57:10 +00:00
  • 29fe7265b8 nc: port nc 1.10 to busybox Denis Vlasenko 2007-04-05 20:26:28 +00:00
  • 00c2c4868a - clean up addgroup, fix adding users to existing groups and make it optional (Tito) Bernhard Reutner-Fischer 2007-04-05 13:16:39 +00:00
  • 45aebfd32d - bail out if either file does not exist Avoids filling my scrollback-buffer with superfluous information ;) Bernhard Reutner-Fischer 2007-04-05 12:27:12 +00:00
  • 2e75dcc80d - add -s|--spider which only checks if the file exists but does not download it's content. Closes #1291 Bernhard Reutner-Fischer 2007-04-05 10:31:47 +00:00
  • 6d79dd66cb - size and prune were mixed up Bernhard Reutner-Fischer 2007-04-05 09:40:12 +00:00
  • bdd253e450 - fix segfault in reset_ino_dev_hashtable() when *hashtable was null. Seen in the testsuite for du -l .../testsuite on exit with CLEAN_UP enabled. Bernhard Reutner-Fischer 2007-04-05 09:21:24 +00:00
  • 7d6c9296e7 find: missed 'ststic' on const data Denis Vlasenko 2007-04-05 00:35:43 +00:00
  • 56fce00fc7 find: un-DESKTOPize (Kai Schwenzfeier <niteblade@gmx.net>) find: -group, -depth (Natanael Copa <natanael.copa@gmail.com>) find: make constant array static, declare PARM_xx constants with enum Denis Vlasenko 2007-04-04 23:41:35 +00:00
  • febe3c4211 - sed -e "s/char[[:space:]]*\*[[:space:]]*argv\[\]/char **argv/g" Bernhard Reutner-Fischer 2007-04-04 20:52:03 +00:00
  • d9c2d5fe4f - minor shrinkage text data bss dec hex filename 1431 0 4 1435 59b tail.o.orig 1396 0 0 1396 574 tail.o Bernhard Reutner-Fischer 2007-04-04 20:29:15 +00:00
  • 10aed96f14 - remove debugging output. sorry.. Bernhard Reutner-Fischer 2007-04-04 17:58:39 +00:00
  • 24efe4f15f - note cosmetic glitch in tail Bernhard Reutner-Fischer 2007-04-04 17:57:55 +00:00
  • 1ca332b367 reword comment Denis Vlasenko 2007-04-04 17:49:47 +00:00
  • 2a47dea263 - remove bss users. Shrinkage while at it. See XXX for further, pre-existing bugs text data bss dec hex filename 1969 0 32 2001 7d1 dd.o.oorig 1941 0 0 1941 795 dd.o Bernhard Reutner-Fischer 2007-04-04 14:01:23 +00:00
  • 3a60244ae9 - remove some bss users. text data bss dec hex filename 6220 8 14 6242 1862 stty.o.oorig 6219 8 0 6227 1853 stty.o Bernhard Reutner-Fischer 2007-04-04 13:59:49 +00:00
  • 0e6ab01c5a - remove superfluous bss user (flags) and manually unswitch some areas: text data bss dec hex filename 4517 0 34 4551 11c7 stat.o.oorig 4300 0 30 4330 10ea stat.o Bernhard Reutner-Fischer 2007-04-04 13:58:33 +00:00
  • 794687947f Add/improve comment, shorten some usage texts. No code changes. Denis Vlasenko 2007-04-04 11:02:55 +00:00
  • 64a15124e7 ipsvd: use IP:PORT syntax for environment vars. Pros: 1. it's saner (matches internal libc sockaddr abstraction). 2. it's smaller. Cons: not compatible with smarden's ipsvd. Fix IPv6 define typos. Stop interpreting options in prog's args. Code size -162 bytes. Denis Vlasenko 2007-04-04 10:16:15 +00:00
  • 02fd66885c ipsvd: make udpsvd work similar to tcpsvd (multiple parallel children for several streams of udp packets tested to work) code size: -509 bytes Denis Vlasenko 2007-04-03 23:23:10 +00:00
  • b933ac1e25 ipsvd: fixes and improvements after testing Denis Vlasenko 2007-04-03 12:09:46 +00:00
  • 992e05b6f0 udpsvd: more work on it. works in limited testing. Denis Vlasenko 2007-04-03 01:13:04 +00:00
  • cea0a8bccb - use bb_error_msg Bernhard Reutner-Fischer 2007-04-02 17:01:22 +00:00
  • 8025afad8a - use xregcomp. Untested. vda, isn't there a regfree missing here? text data bss dec hex filename 2522 0 0 2522 9da expr.o.r18305 2478 0 0 2478 9ae expr.o Bernhard Reutner-Fischer 2007-04-02 16:54:41 +00:00
  • 3c5929a53b - remove some unneeded forward declarations. No obj-code changes. Bernhard Reutner-Fischer 2007-04-02 16:41:24 +00:00
  • adb01b1583 - remove args from bss, minor misc shrinkage while at it. text data bss dec hex filename 2577 0 4 2581 a15 expr.o 2522 0 0 2522 9da expr.o Bernhard Reutner-Fischer 2007-04-02 16:38:13 +00:00
  • 729bd9e0b0 test: comment out unused code udpsvd: fake it compile tcpsvd: more optimal memorizing of IP's for -C Denis Vlasenko 2007-04-02 12:37:28 +00:00
  • b05a939bcc udpsvd: forgotten 'svn add' Denis Vlasenko 2007-04-02 06:17:45 +00:00
  • 60fadaca28 udpsvd: next part of ipsvd applets (not working yet) Denis Vlasenko 2007-04-01 19:10:36 +00:00
  • 57a426b15b tcpsvd: fix line buffering, add firewall query code Denis Vlasenko 2007-04-01 10:59:33 +00:00
  • ba2fb719b9 Copyright, help text, whitespace cleanups Denis Vlasenko 2007-04-01 09:39:03 +00:00
  • 2856dab477 tcpsvd: new applet It's a GPL-ed 'clone' of Dan Bernstein's tcpserver. Author: Gerrit Pape <pape@smarden.org> http://smarden.sunsite.dk/ipsvd/ size tcpsvd.o text data bss dec hex filename 2571 4 16 2591 a1f tcpsvd.o Denis Vlasenko 2007-04-01 01:18:20 +00:00
  • f443bffd3c lash: make -c work; crush buffer overrun and free of non-malloced ptr (from Mats Erik Andersson <mats.andersson64@comhem.se>) Denis Vlasenko 2007-03-31 11:08:50 +00:00
  • 6fa8b8e17f lash: style cleanup Denis Vlasenko 2007-03-31 11:07:30 +00:00
  • 9eb51ad6b9 website: link to post-1.5.0 fixes, fix dangling link Denis Vlasenko 2007-03-31 10:32:27 +00:00
  • ae47cd1da7 hdparm: fix multisector mode setting (from Toni Mirabete <amirabete@catix.cat>) Denis Vlasenko 2007-03-31 10:30:02 +00:00
  • 4caa09a782 uniq: getopt32-ization. -38 bytes. Denis Vlasenko 2007-03-31 10:19:11 +00:00
  • 666c40c9fc unzip: fix xstrndup bug (xstrndup(s,n) can allocate less than n bytes!) Denis Vlasenko 2007-03-31 10:17:24 +00:00
  • 05732281e4 also fix static selinux linking on branch Mike Frysinger 2007-03-31 03:32:05 +00:00