aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* passwd: micro-optimizationvda2006-11-301-4/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16744 69ca8d6d-28ef-0310-b511-8ec308f3f277
* "kernel config" -> "busybox config"vda2006-11-307-12/+12
| | | | | | | suggested by Roberto A. Foglietta <roberto.foglietta@gmail.com> git-svn-id: svn://busybox.net/trunk/busybox@16743 69ca8d6d-28ef-0310-b511-8ec308f3f277
* "make bigdata" biggest offender dealt with:vda2006-11-302-3/+5
| | | | | | | xmalloc 16Kb buffer instead of keeping it in bss git-svn-id: svn://busybox.net/trunk/busybox@16742 69ca8d6d-28ef-0310-b511-8ec308f3f277
* ed: convert style to bbox's. No code changes.vda2006-11-301-224/+93
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16741 69ca8d6d-28ef-0310-b511-8ec308f3f277
* passwd: small size optimization. salt generation improvedvda2006-11-303-23/+32
| | | | | | | (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-305-296/+264
| | | | | | | | | | | | * 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
* - save 4 bytesaldot2006-11-301-1/+1
| | | | | | | | | text data bss dec hex filename 764 0 80 844 34c vlock.o.oorig 760 0 80 840 348 vlock.o git-svn-id: svn://busybox.net/trunk/busybox@16738 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Well, I am not 100.00% usre that uint16 will suffice there.vda2006-11-291-2/+2
| | | | | | | We don't lose anything by using 'unsigned' instead. git-svn-id: svn://busybox.net/trunk/busybox@16736 69ca8d6d-28ef-0310-b511-8ec308f3f277
* another -90 bytes. That #define is **evil**vda2006-11-291-8/+12
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16735 69ca8d6d-28ef-0310-b511-8ec308f3f277
* mkfs.minix: more cleanups, -~300 bytes of code.vda2006-11-291-202/+204
| | | | | | | Added debugging support. git-svn-id: svn://busybox.net/trunk/busybox@16734 69ca8d6d-28ef-0310-b511-8ec308f3f277
* cut 0.5k off mkfs.minixvda2006-11-295-207/+131
| | | | | | | assorted strtoul fixes (that's what brought me into minix)... git-svn-id: svn://busybox.net/trunk/busybox@16722 69ca8d6d-28ef-0310-b511-8ec308f3f277
* httpd: fix decode of '/' when called via -dvda2006-11-291-32/+34
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16721 69ca8d6d-28ef-0310-b511-8ec308f3f277
* od: fix buglet in --traditional, microoptimization,vda2006-11-292-18/+18
| | | | | | | | document coreutils bug bloat-o-meter: account for objects in rodata too git-svn-id: svn://busybox.net/trunk/busybox@16720 69ca8d6d-28ef-0310-b511-8ec308f3f277
* getopt32-ification of fdiskvda2006-11-291-185/+165
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16716 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix support for globally disabling --long-options.vda2006-11-2910-41/+54
| | | | | | | (disabling them saves ~4K on fully configured bbox) git-svn-id: svn://busybox.net/trunk/busybox@16715 69ca8d6d-28ef-0310-b511-8ec308f3f277
* od: sometime ago I landed BIG od implementationvda2006-11-283-761/+627
| | | | | | | | from coreutils. My fault. This commit contains cleanups and size reductions. git-svn-id: svn://busybox.net/trunk/busybox@16710 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
* usage: fix few help texts, fix breakage: '\<tab>'vda2006-11-281-50/+51
| | | | | | | sequence utterly confused cpp :) git-svn-id: svn://busybox.net/trunk/busybox@16700 69ca8d6d-28ef-0310-b511-8ec308f3f277
* udhcpc: fix my breakagevda2006-11-282-5/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16699 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix udhcpc help message, take steps to make usage.h less messyvda2006-11-281-2241/+2240
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16698 69ca8d6d-28ef-0310-b511-8ec308f3f277
* do not overflow ifr_name. maybe it was safe in some places,vda2006-11-277-28/+28
| | | | | | | but not everywhere. err to the safe side. git-svn-id: svn://busybox.net/trunk/busybox@16697 69ca8d6d-28ef-0310-b511-8ec308f3f277
* udhcpc: convert to getopt32vda2006-11-274-171/+155
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16696 69ca8d6d-28ef-0310-b511-8ec308f3f277
* tar: fix misplaced --exclude long option definitionvda2006-11-271-4/+9
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16695 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Closing bug 1040:vda2006-11-271-1/+1
| | | | | | | | | | The "quiet" option is quietly (hah) ignored. It should be passed through to the mount() syscall in the comma separated list of options. I found the problem with the vfat/msdos filesystems, which uses a quiet option to override some complaints and errors. git-svn-id: svn://busybox.net/trunk/busybox@16694 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
* fix remaining survivors of the return(a) cleanupvda2006-11-274-11/+11
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16692 69ca8d6d-28ef-0310-b511-8ec308f3f277
* style cleanup: return(a) -> return a, part 2vda2006-11-2728-282/+273
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16691 69ca8d6d-28ef-0310-b511-8ec308f3f277
* style cleanup: return(a) -> return a, part 1vda2006-11-2736-219/+214
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16690 69ca8d6d-28ef-0310-b511-8ec308f3f277
* byteswap ops had extra mask ops - removedvda2006-11-274-21/+17
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16689 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
* Provide our own isdigit macro. saves more than 400 bytes.vda2006-11-275-11/+13
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16685 69ca8d6d-28ef-0310-b511-8ec308f3f277
* safe_strtoXX interface proved to be a bit unconvenient.vda2006-11-2716-280/+145
| | | | | | | | Remove it, introduce saner bb_strtoXX. Saved ~350 bytes. git-svn-id: svn://busybox.net/trunk/busybox@16684 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - minor shrinkagealdot2006-11-271-8/+6
| | | | | | | | | text data bss dec hex filename 773 0 80 853 355 vlock.o.orig 766 0 80 846 34e vlock.o git-svn-id: svn://busybox.net/trunk/busybox@16683 69ca8d6d-28ef-0310-b511-8ec308f3f277
* ifconfig: do not try to continue on errors. not much sence in doing thatvda2006-11-271-104/+58
| | | | | | | IMHO, but requires extra code. git-svn-id: svn://busybox.net/trunk/busybox@16682 69ca8d6d-28ef-0310-b511-8ec308f3f277
* deluser: the same code, but a bit less obfuscated.vda2006-11-271-15/+16
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16681 69ca8d6d-28ef-0310-b511-8ec308f3f277
* deluser: size reduction by 60 bytes.vda2006-11-271-62/+48
| | | | | | | patch from Tito <farmatito@tiscali.it> git-svn-id: svn://busybox.net/trunk/busybox@16680 69ca8d6d-28ef-0310-b511-8ec308f3f277
* added gcc flag which is needed for ULLONG_MAX to appearvda2006-11-261-0/+3
| | | | | | | on Tito's box git-svn-id: svn://busybox.net/trunk/busybox@16678 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Closing bug 730. libbb run_parts is using scandir (a GNUism),vda2006-11-264-129/+99
| | | | | | | | 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
* added small doc about tar 'pax header' formatvda2006-11-261-0/+239
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16676 69ca8d6d-28ef-0310-b511-8ec308f3f277
* sort: two small optimizationsvda2006-11-261-9/+10
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16675 69ca8d6d-28ef-0310-b511-8ec308f3f277
* sort: reformat entire file wrt style.vda2006-11-261-182/+215
| | | | | | | | | fix single obvious bug: right hand was 0 here: flags & (FLAG_b&FLAG_d&FLAG_f&FLAG_i&FLAG_bb) fixed to use | git-svn-id: svn://busybox.net/trunk/busybox@16674 69ca8d6d-28ef-0310-b511-8ec308f3f277
* small fixes:vda2006-11-269-24/+35
| | | | | | | | | 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
* tar: refuse to untar files with "/../" componentsvda2006-11-261-1/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16672 69ca8d6d-28ef-0310-b511-8ec308f3f277
* tar: correctly skip (and warn about) pax headers.vda2006-11-262-20/+35
| | | | | | | | plug memory leak. save 50 bytes. Wooohooo! we finally can unpack kernel tarballs! git-svn-id: svn://busybox.net/trunk/busybox@16671 69ca8d6d-28ef-0310-b511-8ec308f3f277
* tar: add support for FEATURE_TAR_GNU_EXTENSIONS so than we can savevda2006-11-251-25/+98
| | | | | | | | | | long names now. We were able to read such tars, but not create. +275 bytes. Without FEATURE_TAR_GNU_EXTENSIONS: -25 bytes. We still cannot unpack Linux kernels, but not for long ;) git-svn-id: svn://busybox.net/trunk/busybox@16670 69ca8d6d-28ef-0310-b511-8ec308f3f277
* tee: fix bug: argv[-1] is a no-no!vda2006-11-254-58/+71
| | | | | | | | 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
* tar: small fix and small optimizationvda2006-11-252-12/+10
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16668 69ca8d6d-28ef-0310-b511-8ec308f3f277
* small improvements in str -> num convertorsvda2006-11-253-9/+25
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16667 69ca8d6d-28ef-0310-b511-8ec308f3f277
* tar: abort if tarring up file larger that 64Gbvda2006-11-251-42/+35
| | | | | | | (otherwise we will produce garbled tarfile) git-svn-id: svn://busybox.net/trunk/busybox@16666 69ca8d6d-28ef-0310-b511-8ec308f3f277
* dd: support >2gb values for seek, skip, countvda2006-11-251-4/+10
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16665 69ca8d6d-28ef-0310-b511-8ec308f3f277