aboutsummaryrefslogtreecommitdiff
path: root/libbb (follow)
Commit message (Collapse)AuthorAgeFilesLines
* audit small applets and mark some of them as NOFORK.vda2007-04-105-10/+14
| | | | | | | | Put big scary warnings in relevant places. git-svn-id: svn://busybox.net/trunk/busybox@18382 69ca8d6d-28ef-0310-b511-8ec308f3f277
* style fixes. No code changes.vda2007-04-101-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18381 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - add libbb function str_tolower to convert a string to lowercase.aldot2007-04-102-0/+14
| | | | | | | - shrink wget a bit git-svn-id: svn://busybox.net/trunk/busybox@18377 69ca8d6d-28ef-0310-b511-8ec308f3f277
* make xfunctions optionally longjump instead of exit.vda2007-04-095-12/+31
| | | | | | | | use it for making NOFORK more practical. touch: make it a NOFORK applet git-svn-id: svn://busybox.net/trunk/busybox@18376 69ca8d6d-28ef-0310-b511-8ec308f3f277
* factor out NOFORK/NOEXEC code from find. Use it for xargs too.vda2007-04-091-3/+39
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18375 69ca8d6d-28ef-0310-b511-8ec308f3f277
* wait4pid: if passed with pid < 0, do not set errno - it is already set by exec!vda2007-04-092-34/+33
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18373 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Implement first instance of NOFORK applet - echovda2007-04-092-9/+8
| | | | | | | | | | | | find: use NOFORK/NOEXEC; small -exec buglet also eliminated vfork_daemon_rexec: honor PREFER_APPLETS echo: small size improvements find -exec echo {} \; with PREFER_APPLETS=y runs 4 times faster git-svn-id: svn://busybox.net/trunk/busybox@18372 69ca8d6d-28ef-0310-b511-8ec308f3f277
* getopt32: fix llist_t options ordering. llist_rev is not unused.vda2007-04-082-13/+14
| | | | | | | | | | | | | | | | | | | function old new delta tar_main 705 695 -10 sort_main 928 918 -10 decode_format_string 886 876 -10 run_parts_main 197 185 -12 ps_main 513 500 -13 wget_main 2764 2750 -14 awk_main 1014 1000 -14 od_main 2886 2866 -20 llist_rev 25 - -25 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 0/8 up/down: 0/-128) Total: -128 bytes git-svn-id: svn://busybox.net/trunk/busybox@18364 69ca8d6d-28ef-0310-b511-8ec308f3f277
* find: fix handling of -prunevda2007-04-081-7/+7
| | | | | | | recursive_actions: uppercase flag constants git-svn-id: svn://busybox.net/trunk/busybox@18362 69ca8d6d-28ef-0310-b511-8ec308f3f277
* random small shrinkage and elimination of staticsvda2007-04-071-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18354 69ca8d6d-28ef-0310-b511-8ec308f3f277
* svn add match_fstype.c :(vda2007-04-051-0/+44
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18345 69ca8d6d-28ef-0310-b511-8ec308f3f277
* [u]mount: extend -t option (Roy Marples <uberlord@gentoo.org>)vda2007-04-051-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18344 69ca8d6d-28ef-0310-b511-8ec308f3f277
* libbb: add xunlink()vda2007-04-051-0/+6
| | | | | | | patch: do not try to delete same file twice git-svn-id: svn://busybox.net/trunk/busybox@18342 69ca8d6d-28ef-0310-b511-8ec308f3f277
* nc: port nc 1.10 to busyboxvda2007-04-053-1/+166
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18336 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - fix segfault in reset_ino_dev_hashtable() when *hashtable was null.aldot2007-04-051-1/+3
| | | | | | | Seen in the testsuite for du -l .../testsuite on exit with CLEAN_UP enabled. git-svn-id: svn://busybox.net/trunk/busybox@18331 69ca8d6d-28ef-0310-b511-8ec308f3f277
* test: comment out unused codevda2007-04-021-6/+22
| | | | | | | | udpsvd: fake it compile tcpsvd: more optimal memorizing of IP's for -C git-svn-id: svn://busybox.net/trunk/busybox@18302 69ca8d6d-28ef-0310-b511-8ec308f3f277
* tcpsvd: new appletvda2007-04-012-7/+62
| | | | | | | | | | | | | 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 git-svn-id: svn://busybox.net/trunk/busybox@18294 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - fix bug where we did not reject invalid classes like '[[:alpha'aldot2007-03-301-6/+5
| | | | | | | | | | - debloat while at it: text data bss dec hex filename 1554 0 19 1573 625 tr.o.oorig 1357 0 16 1373 55d tr.o git-svn-id: svn://busybox.net/trunk/busybox@18281 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - fold recurse, depthFirst and dereference params into one param flags.aldot2007-03-291-21/+20
| | | | | | | Minor size improvement (-16b for size, -24b according to bloat-o-meter). git-svn-id: svn://busybox.net/trunk/busybox@18271 69ca8d6d-28ef-0310-b511-8ec308f3f277
* ps: work around libc bug: printf("%.*s\n", MAX_INT, buffer)vda2007-03-281-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18266 69ca8d6d-28ef-0310-b511-8ec308f3f277
* pidfile creation mode set to 0666 (umask affects it as usual)vda2007-03-271-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18256 69ca8d6d-28ef-0310-b511-8ec308f3f277
* forgotten svn add...vda2007-03-271-0/+29
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18255 69ca8d6d-28ef-0310-b511-8ec308f3f277
* make pidfile writing configurable.vda2007-03-272-6/+7
| | | | | | | [ui]toa_to_buf: change API. No users yet. git-svn-id: svn://busybox.net/trunk/busybox@18254 69ca8d6d-28ef-0310-b511-8ec308f3f277
* remove_file: cosmetic code improvement, a few bytes savedvda2007-03-261-34/+21
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18253 69ca8d6d-28ef-0310-b511-8ec308f3f277
* zcip: make it work on NOMMU (+ improve NOMMU support machinery)vda2007-03-262-6/+16
| | | | | | | fsck: fix bad English in a comment git-svn-id: svn://busybox.net/trunk/busybox@18248 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Attempt to get more applets compile for NOMMU.vda2007-03-261-4/+6
| | | | | | | | | | TODO_config_nommu documents what I managed to compile so far (yay! msh works! cool). inetd, telnetd, httpd still do not compile. TODO Also make fork(), daemon() produce warnings on compile stage (in addition to erros on link stage). git-svn-id: svn://busybox.net/trunk/busybox@18245 69ca8d6d-28ef-0310-b511-8ec308f3f277
* libbb: rework NOMMU helper API so that it makes more sensevda2007-03-262-79/+133
| | | | | | | and easier to use. Doesn't compile - need two more commits. git-svn-id: svn://busybox.net/trunk/busybox@18241 69ca8d6d-28ef-0310-b511-8ec308f3f277
* add NOMMU fixme's; move move_fd from runit_lib to libbb; nuke fd_copyvda2007-03-251-0/+10
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18237 69ca8d6d-28ef-0310-b511-8ec308f3f277
* random style fixes (extra spaces deleted)vda2007-03-242-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18228 69ca8d6d-28ef-0310-b511-8ec308f3f277
* NOMMU re-exec trick shuld not depend on existence of "don't daemonize"vda2007-03-241-14/+9
| | | | | | | | option for every affected applet (and dnsd, for example, don't have one). Thus rework re-exec support to not require it. Code got smaller too. git-svn-id: svn://busybox.net/trunk/busybox@18219 69ca8d6d-28ef-0310-b511-8ec308f3f277
* applets.c, xfunc.c: style cleanupvda2007-03-241-8/+8
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18217 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix accumulated whitespace and indentation damagevda2007-03-202-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18176 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix inadvertently leaked PWD_BUFFER_SIZEvda2007-03-181-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18134 69ca8d6d-28ef-0310-b511-8ec308f3f277
* gzip: Improve ptr_to_globals trick, allowing gccvda2007-03-151-1/+2
| | | | | | | to optimize better. -480 bytes. git-svn-id: svn://busybox.net/trunk/busybox@18121 69ca8d6d-28ef-0310-b511-8ec308f3f277
* copy_file: comment out one condition which is always false.vda2007-03-151-28/+50
| | | | | | | | | | Add comment explaining POSIX rules for cp - and why these rules are dangerous. Provide conditionally compiled code for both POSIX and safe behaviors, select safe for now. Code shrunk by ~80 bytes. git-svn-id: svn://busybox.net/trunk/busybox@18119 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix TODO: getopt32 should reset optind to 1 itselfvda2007-03-151-2/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18118 69ca8d6d-28ef-0310-b511-8ec308f3f277
* modify ptr_to_globals trick so that we do not violatevda2007-03-151-1/+2
| | | | | | | type safety (well, sort of ;)) git-svn-id: svn://busybox.net/trunk/busybox@18116 69ca8d6d-28ef-0310-b511-8ec308f3f277
* swapon: reinstate hole check but reduce it to warningvda2007-03-141-1/+0
| | | | | | | inode_hash: remove unused variable git-svn-id: svn://busybox.net/trunk/busybox@18114 69ca8d6d-28ef-0310-b511-8ec308f3f277
* stop using big static buffer for inode hashvda2007-03-142-42/+44
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18109 69ca8d6d-28ef-0310-b511-8ec308f3f277
* stop using (yet another) static buffervda2007-03-141-3/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18108 69ca8d6d-28ef-0310-b511-8ec308f3f277
* gzip: reduce global data footprint, part 3vda2007-03-141-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18092 69ca8d6d-28ef-0310-b511-8ec308f3f277
* gzip: reduce global data footprint, part 2vda2007-03-141-0/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18091 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Do not fail password check if shadow password does not exist -vda2007-03-132-16/+24
| | | | | | | | | | | | | | | | | | | | | | | | | fall back to ordinary one Reduced usage of functions returning datain static buffers. (mostly passwd/group/shadow related): function old new delta correct_password 143 193 +50 sulogin_main 490 533 +43 adduser_main 732 774 +42 passwd_main 1875 1915 +40 addgroup_main 330 365 +35 bb_internal_getspnam 38 - -38 bb_internal_fgetpwent 38 - -38 bb_internal_fgetgrent 38 - -38 static.resultbuf 168 88 -80 static.buffer 1872 1104 -768 ------------------------------------------------------------------------------ (add/remove: 0/3 grow/shrink: 5/2 up/down: 210/-962) Total: -752 bytes git-svn-id: svn://busybox.net/trunk/busybox@18085 69ca8d6d-28ef-0310-b511-8ec308f3f277
* introduce and use setfscreatecon_or_dievda2007-03-122-1/+11
| | | | | | | | (patch by Yuichi Nakamura <ynakam@hitachisoft.jp>) runcon: *yet another* fix for vda's brainfart :( git-svn-id: svn://busybox.net/trunk/busybox@18073 69ca8d6d-28ef-0310-b511-8ec308f3f277
* next portion of selinux updates: chcon, runcon. Fromvda2007-03-112-0/+31
| | | | | | | | Yuichi Nakamura <himainu-ynakam@miomio.jp> KaiGai Kohei <busybox@kaigai.gr.jp> git-svn-id: svn://busybox.net/trunk/busybox@18067 69ca8d6d-28ef-0310-b511-8ec308f3f277
* selinux support by Yuichi Nakamura <ynakam@hitachisoft.jp> (HitachiSoft)vda2007-03-101-0/+40
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18062 69ca8d6d-28ef-0310-b511-8ec308f3f277
* clean up accumulated whitespace damagevda2007-03-074-6/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18020 69ca8d6d-28ef-0310-b511-8ec308f3f277
* ifupdown: code to deconstruct the state_list gracefullyvda2007-03-061-8/+27
| | | | | | | (patch by Gabriel L. Somlo <somlo@cmu.edu>) git-svn-id: svn://busybox.net/trunk/busybox@18018 69ca8d6d-28ef-0310-b511-8ec308f3f277
* ping: don't measure times if ping payload is less than 8 bytes;vda2007-03-032-12/+8
| | | | | | | commonalize some ping code. git-svn-id: svn://busybox.net/trunk/busybox@17999 69ca8d6d-28ef-0310-b511-8ec308f3f277
* sort: fix multiple -k (was ignoring all except last)vda2007-02-171-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17919 69ca8d6d-28ef-0310-b511-8ec308f3f277