aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* doc: fix code example which may provoke warningvda2007-04-151-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18452 69ca8d6d-28ef-0310-b511-8ec308f3f277
* e2fsprogs: stop using statics in chattr. Minor code shrinkage (-130 bytes)vda2007-04-153-83/+82
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18451 69ca8d6d-28ef-0310-b511-8ec308f3f277
* deluser: add optional support for removing users from groupsvda2007-04-154-55/+107
| | | | | | | (by Tito <farmatito@tiscali.it>) git-svn-id: svn://busybox.net/trunk/busybox@18449 69ca8d6d-28ef-0310-b511-8ec308f3f277
* update style-guide.txtvda2007-04-151-54/+79
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18448 69ca8d6d-28ef-0310-b511-8ec308f3f277
* xargs: simplify word list managementvda2007-04-151-29/+25
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18447 69ca8d6d-28ef-0310-b511-8ec308f3f277
* msh: style fixesvda2007-04-142-6/+10
| | | | | | | shell/README - a place to record things about busybox shells git-svn-id: svn://busybox.net/trunk/busybox@18440 69ca8d6d-28ef-0310-b511-8ec308f3f277
* lineedit: nuke two unused variables and code which sets themvda2007-04-143-51/+51
| | | | | | | | | applets: do not even try to read config if run by real root msh: use named constants (O_RDONLY etc) in open() instead of magic numbers, other minor code size reduction. git-svn-id: svn://busybox.net/trunk/busybox@18439 69ca8d6d-28ef-0310-b511-8ec308f3f277
* lash: recognize and use NOFORK appletsvda2007-04-142-44/+46
| | | | | | | lash,hush: fix kill buglet (didn't properly recognize ESRCH) git-svn-id: svn://busybox.net/trunk/busybox@18438 69ca8d6d-28ef-0310-b511-8ec308f3f277
* lineedit: do not try to open NULL history filevda2007-04-141-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18437 69ca8d6d-28ef-0310-b511-8ec308f3f277
* hush: use NOFORK applets as appropriate. Net reduction of code size.vda2007-04-147-114/+125
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18436 69ca8d6d-28ef-0310-b511-8ec308f3f277
* teach find_root_device to deal with /dev/ subdirsvda2007-04-139-27/+71
| | | | | | | (by "Kirill K. Smirnov" <lich@math.spbu.ru>) git-svn-id: svn://busybox.net/trunk/busybox@18435 69ca8d6d-28ef-0310-b511-8ec308f3f277
* dpkg: use nitfields which are a bit closer to typical ushort.vda2007-04-131-62/+65
| | | | | | | Code size -800. git-svn-id: svn://busybox.net/trunk/busybox@18434 69ca8d6d-28ef-0310-b511-8ec308f3f277
* style fixesvda2007-04-138-59/+58
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18433 69ca8d6d-28ef-0310-b511-8ec308f3f277
* sourse_route_list -> source_route_listvda2007-04-131-6/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18432 69ca8d6d-28ef-0310-b511-8ec308f3f277
* make xsocket die with address family printed (if VERBOSE_RESOLUTION_ERRORS=y)vda2007-04-131-1/+12
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18431 69ca8d6d-28ef-0310-b511-8ec308f3f277
* hush: more style fixes.vda2007-04-131-64/+66
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18430 69ca8d6d-28ef-0310-b511-8ec308f3f277
* hush: comment out and replace bug in set_local_var:vda2007-04-131-44/+46
| | | | | | | | | | | | - if (value == 0 && ++value == 0) { + /*if (value == 0 && ++value == 0) ??? -vda */ + if (value == NULL || value[1] == '\0') { Style fixes. git-svn-id: svn://busybox.net/trunk/busybox@18429 69ca8d6d-28ef-0310-b511-8ec308f3f277
* shell/: add SUSv3 doc for fast & easy referencevda2007-04-131-0/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18428 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix typo in commentvda2007-04-131-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18426 69ca8d6d-28ef-0310-b511-8ec308f3f277
* find: add support for -delete, -path (by Natanael Copa)vda2007-04-133-0/+64
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18425 69ca8d6d-28ef-0310-b511-8ec308f3f277
* sed: fix escaped newlines in -f; fix multiple -f and -evda2007-04-121-32/+18
| | | | | | | (broke when getopt32 was fixed to not reverse the list) git-svn-id: svn://busybox.net/trunk/busybox@18421 69ca8d6d-28ef-0310-b511-8ec308f3f277
* login: fixing my brainfart: xspawn(t_argv) <- was using argv!vda2007-04-121-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18420 69ca8d6d-28ef-0310-b511-8ec308f3f277
* make sure we free the grep data as wellvapier2007-04-121-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18419 69ca8d6d-28ef-0310-b511-8ec308f3f277
* lash: "forking" applets are actually can be treated the same way as ↵vda2007-04-121-42/+27
| | | | | | | | | "non-forked". Also save a bit of space on trailing NULL array elements. git-svn-id: svn://busybox.net/trunk/busybox@18418 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix realloc-of-non-malloced pointer, and reduce size while at itvda2007-04-122-15/+15
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18417 69ca8d6d-28ef-0310-b511-8ec308f3f277
* login: remove setpgrp call (makes it work from shell prompt again).vda2007-04-124-38/+32
| | | | | | | | login: sanitize stdio descriptors (we are suid, need to be careful!) shrink login and set_environment by ~100 bytes. git-svn-id: svn://busybox.net/trunk/busybox@18416 69ca8d6d-28ef-0310-b511-8ec308f3f277
* pass a copy of argv[i] to NOFORK applets (they may permute it etc).vda2007-04-125-30/+38
| | | | | | | set/save/restore more shared global variables whan call one applet from another git-svn-id: svn://busybox.net/trunk/busybox@18415 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - shrink iproute a bit (-200 bytes). Untestedaldot2007-04-123-63/+84
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18414 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - add xsendto and use where appropriate; shrink iplink; sanitize libiproute ↵aldot2007-04-1216-239/+159
| | | | | | | | | a bit. -916 byte git-svn-id: svn://busybox.net/trunk/busybox@18413 69ca8d6d-28ef-0310-b511-8ec308f3f277
* style fixes. No code changesvda2007-04-1230-82/+84
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18409 69ca8d6d-28ef-0310-b511-8ec308f3f277
* bb_full_fd_action: remove potential xmalloc from NOFORK pathvda2007-04-1120-162/+183
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 git-svn-id: svn://busybox.net/trunk/busybox@18408 69ca8d6d-28ef-0310-b511-8ec308f3f277
* ash: fix kill -l (by Mats Erik Andersson <mats.andersson64@comhem.se>)vda2007-04-111-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18405 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix typo in docvda2007-04-111-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18404 69ca8d6d-28ef-0310-b511-8ec308f3f277
* style fixes, no code changes.vda2007-04-116-33/+37
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18403 69ca8d6d-28ef-0310-b511-8ec308f3f277
* rename: run_applet_by_name -> run_applet_and_exitvda2007-04-118-11/+11
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18402 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - set the scope properly. Thanks to Jean Wolter, who wrote:aldot2007-04-111-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | busybox ip and the original ip utility behave differently when setting the following route (verified with ip route show using the original ip utility): ip route add 10.0.0.138 dev eth0 Result for busybox ip: # ip route add 10.0.0.138 dev eth0 # /usr/local/bin/ip route show 10.0.0.138 dev eth0 Result for ip: # /usr/local/bin/ip route add 10.0.0.138 dev eth0 # /usr/local/bin/ip route show 10.0.0.138 dev eth0 scope link A following "ip route add default via 10.0.0.138" fails for busybox ip, since the kernel can not find a route to 10.0.0.138 (it replies with Network is unreachable). The reasons seems to be that the original ip utility explicitly sets the scope after parsing all parameters. This is missing in busybox, the attached patch fixes this. I took this from the original iproute sources and removed some variables, which are not needed for busybox. git-svn-id: svn://busybox.net/trunk/busybox@18401 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add NOFORK/NOEXEC documentation.vda2007-04-111-0/+70
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18400 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix typo in commentvda2007-04-111-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18398 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix misplaced #ifvda2007-04-111-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18397 69ca8d6d-28ef-0310-b511-8ec308f3f277
* add more convenient defines for [NO]MMU:vda2007-04-116-27/+30
| | | | | | | "#ifndef BB_NOMMU" is a double negative git-svn-id: svn://busybox.net/trunk/busybox@18396 69ca8d6d-28ef-0310-b511-8ec308f3f277
* random NOMMU fixes. compressed --help really does work for NOMMU! /me happyvda2007-04-105-9/+28
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18395 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Rename two config options:vda2007-04-1017-40/+67
| | | | | | | | | | 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 git-svn-id: svn://busybox.net/trunk/busybox@18394 69ca8d6d-28ef-0310-b511-8ec308f3f277
* xargs: fix my brain fart (resulted in memory leak)vda2007-04-101-7/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18393 69ca8d6d-28ef-0310-b511-8ec308f3f277
* make compressed help code NOMMU- and NOFORK-friendly -vda2007-04-1011-170/+134
| | | | | | | no forking anymore, bunzip2 unpack routine now does all it in memory. git-svn-id: svn://busybox.net/trunk/busybox@18392 69ca8d6d-28ef-0310-b511-8ec308f3f277
* make a few struct bb_applet members conditionalvda2007-04-1018-83/+114
| | | | | | | | | rename sllep_and_die -> xfunc_die make fflush_stdout_and_exit NOFORK-safe fix some buglets found by randomconfig git-svn-id: svn://busybox.net/trunk/busybox@18391 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - mv ip*_main into ip.c; use a dispatcher to save on needless duplication.aldot2007-04-107-136/+51
| | | | | | | Saves a minor 12b. git-svn-id: svn://busybox.net/trunk/busybox@18390 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - use enum for the OPs as suggested by vda. No obj-code changes.aldot2007-04-101-14/+18
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18389 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - forgot this hunk that corrects the usage text of ipaldot2007-04-101-3/+15
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18388 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - rewrite the ip applet to be less bloatyaldot2007-04-102-23/+49
| | | | | | | | | | | - 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. git-svn-id: svn://busybox.net/trunk/busybox@18387 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - add ATTRIBUTE_DEPRECATED for functions that should be removed in the future.aldot2007-04-101-0/+2
| | | | | | | This is ment to provide means to point at cruft marked for cleanup. git-svn-id: svn://busybox.net/trunk/busybox@18386 69ca8d6d-28ef-0310-b511-8ec308f3f277