aboutsummaryrefslogtreecommitdiff
path: root/libbb (follow)
Commit message (Collapse)AuthorAgeFilesLines
* build system: small fix for "release" target to workvda2006-12-121-0/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16863 69ca8d6d-28ef-0310-b511-8ec308f3f277
* bb_makedev: fix for glibc 2.3.2vda2006-12-101-0/+1
| | | | | | | sed: fix C++ style declaration git-svn-id: svn://busybox.net/trunk/busybox@16831 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - cosmetic change to avoid warnings about eventual padding/packing.aldot2006-12-041-9/+9
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16780 69ca8d6d-28ef-0310-b511-8ec308f3f277
* sed: improve handling of NULsvda2006-12-021-5/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16754 69ca8d6d-28ef-0310-b511-8ec308f3f277
* passwd: made smaller by ~130 bytes. size can go negativevda2006-12-011-35/+33
| | | | | | | if current trend will continue ;) git-svn-id: svn://busybox.net/trunk/busybox@16747 69ca8d6d-28ef-0310-b511-8ec308f3f277
* passwd: small size optimization. salt generation improvedvda2006-11-301-1/+0
| | | | | | | (really generated different salts even if called back-to-back). git-svn-id: svn://busybox.net/trunk/busybox@16740 69ca8d6d-28ef-0310-b511-8ec308f3f277
* passwd: rework:vda2006-11-303-13/+13
| | | | | | | | | | | | * do not make backup copy by copying (just retain old file) * correctly fall back to /etc/passwd if user is not in shadow * fix bug with overlong passwd entries * be permissive on some kinds of failures * reduce stack usage * code size: -500 bytes git-svn-id: svn://busybox.net/trunk/busybox@16739 69ca8d6d-28ef-0310-b511-8ec308f3f277
* cut 0.5k off mkfs.minixvda2006-11-292-9/+11
| | | | | | | assorted strtoul fixes (that's what brought me into minix)... git-svn-id: svn://busybox.net/trunk/busybox@16722 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix bug in new str -> num convertorsvda2006-11-281-4/+12
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16704 69ca8d6d-28ef-0310-b511-8ec308f3f277
* erase_mtab: do not limit ourself to 40 mtab entriesvda2006-11-271-32/+21
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16693 69ca8d6d-28ef-0310-b511-8ec308f3f277
* style cleanup: return(a) -> return a, part 2vda2006-11-273-10/+10
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16691 69ca8d6d-28ef-0310-b511-8ec308f3f277
* style cleanup: return(a) -> return a, part 1vda2006-11-272-4/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16690 69ca8d6d-28ef-0310-b511-8ec308f3f277
* svn add bb_strtonum.c :(vda2006-11-271-0/+147
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16687 69ca8d6d-28ef-0310-b511-8ec308f3f277
* safe_strtoXX interface proved to be a bit unconvenient.vda2006-11-275-181/+13
| | | | | | | | Remove it, introduce saner bb_strtoXX. Saved ~350 bytes. git-svn-id: svn://busybox.net/trunk/busybox@16684 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Closing bug 730. libbb run_parts is using scandir (a GNUism),vda2006-11-262-120/+0
| | | | | | | | and it is used only by run_parts applet, so move it there. Also saved ~30 bytes (prolly gcc autoinlining...). git-svn-id: svn://busybox.net/trunk/busybox@16677 69ca8d6d-28ef-0310-b511-8ec308f3f277
* small fixes:vda2006-11-261-11/+19
| | | | | | | | | fix xstrdup to not grossly overallocate memory use xopen instean of xopen3 in several places etc. git-svn-id: svn://busybox.net/trunk/busybox@16673 69ca8d6d-28ef-0310-b511-8ec308f3f277
* tee: fix bug: argv[-1] is a no-no!vda2006-11-252-19/+32
| | | | | | | | bb_full_fd_action: optimize die_if_ferror: "<applet>: filename" isn't a good err msg, add "..I/O error" git-svn-id: svn://busybox.net/trunk/busybox@16669 69ca8d6d-28ef-0310-b511-8ec308f3f277
* small improvements in str -> num convertorsvda2006-11-251-3/+13
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16667 69ca8d6d-28ef-0310-b511-8ec308f3f277
* regularize str -> num convertorsvda2006-11-254-237/+267
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16664 69ca8d6d-28ef-0310-b511-8ec308f3f277
* small optimizationvda2006-11-241-4/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16663 69ca8d6d-28ef-0310-b511-8ec308f3f277
* tar: fix multiple -t and/or -v options handling.vda2006-11-241-8/+7
| | | | | | | do not process list of files to tar up in reverse order. git-svn-id: svn://busybox.net/trunk/busybox@16662 69ca8d6d-28ef-0310-b511-8ec308f3f277
* tar: sanitize option handlingvda2006-11-244-90/+88
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16661 69ca8d6d-28ef-0310-b511-8ec308f3f277
* tar: fix and sanitize handling of long filenames/linknamesvda2006-11-241-0/+1
| | | | | | | | | | | | (GNU extensions 'K' and 'L'). We correctly handle them when untarring now, but unfortunately we still don't use them when tarring! That stupid 100 char limit is still there! The biggest problem is that we don't support 'pax' tar format. Linux kernel tarballs are in this format... shame git-svn-id: svn://busybox.net/trunk/busybox@16659 69ca8d6d-28ef-0310-b511-8ec308f3f277
* hunt down improper include <>, make mkswap output 4Gb+ friendlyvda2006-11-243-5/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16658 69ca8d6d-28ef-0310-b511-8ec308f3f277
* svn add makedev.c. Forgot as usual... :(vda2006-11-241-0/+19
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16656 69ca8d6d-28ef-0310-b511-8ec308f3f277
* tar: small fixes:vda2006-11-241-15/+19
| | | | | | | | * size-optimize mapping code * kill double close git-svn-id: svn://busybox.net/trunk/busybox@16655 69ca8d6d-28ef-0310-b511-8ec308f3f277
* tar: cache [ug]id->username/groupname mappings. Cuts down amountvda2006-11-241-18/+48
| | | | | | | | of open/read/close of /etc/passwd and /etc/group dramatically (we were rereading those for each untarred file!!!) git-svn-id: svn://busybox.net/trunk/busybox@16654 69ca8d6d-28ef-0310-b511-8ec308f3f277
* tar: cry murder and bail out if file shrinks under us while we tar it upvda2006-11-241-2/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16653 69ca8d6d-28ef-0310-b511-8ec308f3f277
* glibc makedev() is a large inline. Save 700+ bytes by wrapping itvda2006-11-241-32/+90
| | | | | | | into a function. git-svn-id: svn://busybox.net/trunk/busybox@16652 69ca8d6d-28ef-0310-b511-8ec308f3f277
* tar:vda2006-11-241-1/+0
| | | | | | | | | | | | * unpack: handle tar header fields which are not NUL terminated * pack: handle 4+GB files correctly * pack: refuse to store 101+ softlinks (was truncating link target name) * pack: mask mode with 07777 git-svn-id: svn://busybox.net/trunk/busybox@16650 69ca8d6d-28ef-0310-b511-8ec308f3f277
* introduce setsockopt_reuseaddr(int fd), setsockopt_broadcast(int fd),vda2006-11-221-2/+11
| | | | | | | | use them where appropriate. 200 bytes saved git-svn-id: svn://busybox.net/trunk/busybox@16641 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix double mergevda2006-11-221-76/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16628 69ca8d6d-28ef-0310-b511-8ec308f3f277
* telnetd: move generic stuff into libbb. It will make it easyvda2006-11-221-0/+152
| | | | | | | to make other server applets IPv6-aware too. git-svn-id: svn://busybox.net/trunk/busybox@16624 69ca8d6d-28ef-0310-b511-8ec308f3f277
* telnetd: we were having telnetd with is ONLY inetd or ONLY standalone.vda2006-11-221-0/+12
| | | | | | | | What if I need to have both?? This patch introduces CONFIG_FEATURE_TELNETD_STANDALONE: y - both, n - only inetd. git-svn-id: svn://busybox.net/trunk/busybox@16622 69ca8d6d-28ef-0310-b511-8ec308f3f277
* xgethostbyname: more readablevda2006-11-211-5/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16613 69ca8d6d-28ef-0310-b511-8ec308f3f277
* bb_INET_default[] is really just a const "default",vda2006-11-212-19/+21
| | | | | | | nothing INET-specific git-svn-id: svn://busybox.net/trunk/busybox@16612 69ca8d6d-28ef-0310-b511-8ec308f3f277
* rodata cleanup. "unable to" == "cannot". -300 bytesvda2006-11-184-13/+13
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16580 69ca8d6d-28ef-0310-b511-8ec308f3f277
* svlogd: new applet. +9k. Still too big, but it was 12k yesterday.vda2006-11-161-0/+10
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16535 69ca8d6d-28ef-0310-b511-8ec308f3f277
* wget: fix error message.vda2006-11-101-4/+1
| | | | | | | | | | | | | | | | | | Bad: wget http://127.0.0.1:81/fgdg/Makefile Connecting to 127.0.0.1[127.0.0.1]:81 : HTTP/1.0 404 Not Foundror 404 Not Found Good: wget http://127.0.0.1:81/fgdg/Makefile Connecting to 127.0.0.1[127.0.0.1]:81 get: server returned error: HTTP/1.0 404 Not Found nslookup: fix my mistake applets: make Bernhard Fischer <rep.nop@aon.at> happy :) git-svn-id: svn://busybox.net/trunk/busybox@16528 69ca8d6d-28ef-0310-b511-8ec308f3f277
* rename: compare_string_array -> index_in_str_arrayvda2006-11-051-4/+20
| | | | | | | | introduce index_in_substr_array and use it in iproute2 git-svn-id: svn://busybox.net/trunk/busybox@16515 69ca8d6d-28ef-0310-b511-8ec308f3f277
* smart_ulltoa5: make available in libbbvda2006-11-051-6/+54
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16510 69ca8d6d-28ef-0310-b511-8ec308f3f277
* replace /proc scanning code by more versatile one.vda2006-11-052-93/+174
| | | | | | | | | | Use it where appropriate. Stop scanning /etc/passwd *for every process*!!! (uid->username) top: reduce memory usage - we won't save unneeded fields from /proc info anymore. Downside: ~+250 bytes of code git-svn-id: svn://busybox.net/trunk/busybox@16509 69ca8d6d-28ef-0310-b511-8ec308f3f277
* top: improve CPU% calculationvda2006-11-051-7/+0
| | | | | | | style fixes git-svn-id: svn://busybox.net/trunk/busybox@16508 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Unneeded code removed, usused field "unsigned pscpu" removedvda2006-11-011-4/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16488 69ca8d6d-28ef-0310-b511-8ec308f3f277
* PID should be stored in pid_t, not int or long.vda2006-11-012-15/+13
| | | | | | | | find_pid_by_name() was returning 0 or -1 in last array element, but -1 was never checked. We can use just 0 intead. git-svn-id: svn://busybox.net/trunk/busybox@16485 69ca8d6d-28ef-0310-b511-8ec308f3f277
* #if CONFIG_xxx -> #if ENABLE_xxxvda2006-11-011-11/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16483 69ca8d6d-28ef-0310-b511-8ec308f3f277
* reads: fix bug 1078vda2006-10-311-1/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16480 69ca8d6d-28ef-0310-b511-8ec308f3f277
* login: re-enable Ctrl-^C before execing shell.vda2006-10-312-77/+55
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16477 69ca8d6d-28ef-0310-b511-8ec308f3f277
* dd: fix bugs: always assumed conv=sync, died on write errorsvda2006-10-311-1/+1
| | | | | | | w/o perror and statictics. Several small improvements git-svn-id: svn://busybox.net/trunk/busybox@16476 69ca8d6d-28ef-0310-b511-8ec308f3f277
* find: a lot more compliant to 'standard' findvda2006-10-291-1/+8
| | | | | | | | (we were not respecting order of actions!). Add -o and -a handling. git-svn-id: svn://busybox.net/trunk/busybox@16469 69ca8d6d-28ef-0310-b511-8ec308f3f277