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

Commit Graph

  • eb98be02ac "kernel config" -> "busybox config" suggested by Roberto A. Foglietta <roberto.foglietta@gmail.com> Denis Vlasenko 2006-11-30 22:40:32 +00:00
  • 93f6aa6bca "make bigdata" biggest offender dealt with: xmalloc 16Kb buffer instead of keeping it in bss Denis Vlasenko 2006-11-30 21:11:01 +00:00
  • 610c4aa197 ed: convert style to bbox's. No code changes. Denis Vlasenko 2006-11-30 20:57:50 +00:00
  • 002526481e passwd: small size optimization. salt generation improved (really generated different salts even if called back-to-back). Denis Vlasenko 2006-11-30 20:41:28 +00:00
  • ab24e18c7a passwd: rework: * 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 Denis Vlasenko 2006-11-30 16:41:15 +00:00
  • b8bb27c7ea - save 4 bytes text data bss dec hex filename 764 0 80 844 34c vlock.o.oorig 760 0 80 840 348 vlock.o Bernhard Reutner-Fischer 2006-11-30 14:53:51 +00:00
  • 28bb84bd4e Well, I am not 100.00% usre that uint16 will suffice there. We don't lose anything by using 'unsigned' instead. Denis Vlasenko 2006-11-29 23:15:04 +00:00
  • 016a82e279 another -90 bytes. That #define is **evil** Denis Vlasenko 2006-11-29 22:47:42 +00:00
  • 66b86c6902 mkfs.minix: more cleanups, -~300 bytes of code. Added debugging support. Denis Vlasenko 2006-11-29 22:33:47 +00:00
  • c6ce8733dd cut 0.5k off mkfs.minix assorted strtoul fixes (that's what brought me into minix)... Denis Vlasenko 2006-11-29 18:15:52 +00:00
  • a35c9e91ba httpd: fix decode of '/' when called via -d Denis Vlasenko 2006-11-29 15:58:50 +00:00
  • 2425bdce34 od: fix buglet in --traditional, microoptimization, document coreutils bug bloat-o-meter: account for objects in rodata too Denis Vlasenko 2006-11-29 14:32:01 +00:00
  • 834410a5a5 getopt32-ification of fdisk Denis Vlasenko 2006-11-29 12:00:28 +00:00
  • c61852a02b fix support for globally disabling --long-options. (disabling them saves ~4K on fully configured bbox) Denis Vlasenko 2006-11-29 11:09:43 +00:00
  • 601ae1378b od: sometime ago I landed BIG od implementation from coreutils. My fault. This commit contains cleanups and size reductions. Denis Vlasenko 2006-11-28 23:37:46 +00:00
  • df38188367 fix bug in new str -> num convertors Denis Vlasenko 2006-11-28 10:54:16 +00:00
  • 7df69b887a usage: fix few help texts, fix breakage: '\<tab>' sequence utterly confused cpp :) Denis Vlasenko 2006-11-28 00:46:49 +00:00
  • c2f5b02293 udhcpc: fix my breakage Denis Vlasenko 2006-11-28 00:21:46 +00:00
  • 1fffe38e01 fix udhcpc help message, take steps to make usage.h less messy Denis Vlasenko 2006-11-28 00:06:39 +00:00
  • 229b3d2072 do not overflow ifr_name. maybe it was safe in some places, but not everywhere. err to the safe side. Denis Vlasenko 2006-11-27 23:44:57 +00:00
  • e2d3ded354 udhcpc: convert to getopt32 Denis Vlasenko 2006-11-27 23:43:28 +00:00
  • 30d7a346e6 tar: fix misplaced --exclude long option definition Denis Vlasenko 2006-11-27 20:24:40 +00:00
  • 5e90e10647 Closing bug 1040: 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. Denis Vlasenko 2006-11-27 19:50:16 +00:00
  • f1a6c6b362 erase_mtab: do not limit ourself to 40 mtab entries Denis Vlasenko 2006-11-27 17:29:09 +00:00
  • 097c324f59 fix remaining survivors of the return(a) cleanup Denis Vlasenko 2006-11-27 16:59:15 +00:00
  • d9e15f2068 style cleanup: return(a) -> return a, part 2 Denis Vlasenko 2006-11-27 16:49:55 +00:00
  • 079f8afa0a style cleanup: return(a) -> return a, part 1 Denis Vlasenko 2006-11-27 16:49:31 +00:00
  • 10d0d4eec7 byteswap ops had extra mask ops - removed Denis Vlasenko 2006-11-27 16:48:17 +00:00
  • 3ece72dc3f svn add bb_strtonum.c :( Denis Vlasenko 2006-11-27 15:12:16 +00:00
  • 459903bd4e Provide our own isdigit macro. saves more than 400 bytes. Denis Vlasenko 2006-11-27 14:44:18 +00:00
  • d686a045c8 safe_strtoXX interface proved to be a bit unconvenient. Remove it, introduce saner bb_strtoXX. Saved ~350 bytes. Denis Vlasenko 2006-11-27 14:43:21 +00:00
  • 8a0a83d503 - minor shrinkage text data bss dec hex filename 773 0 80 853 355 vlock.o.orig 766 0 80 846 34e vlock.o Bernhard Reutner-Fischer 2006-11-27 13:58:18 +00:00
  • 2813ce2aad ifconfig: do not try to continue on errors. not much sence in doing that IMHO, but requires extra code. Denis Vlasenko 2006-11-27 10:03:21 +00:00
  • a7b2c41e03 deluser: the same code, but a bit less obfuscated. Denis Vlasenko 2006-11-27 01:04:23 +00:00
  • c9bb67787a deluser: size reduction by 60 bytes. patch from Tito <farmatito@tiscali.it> Denis Vlasenko 2006-11-27 00:54:59 +00:00
  • bf11e8942d added gcc flag which is needed for ULLONG_MAX to appear on Tito's box Denis Vlasenko 2006-11-26 22:17:46 +00:00
  • e5667c1cfe Closing bug 730. libbb run_parts is using scandir (a GNUism), and it is used only by run_parts applet, so move it there. Also saved ~30 bytes (prolly gcc autoinlining...). Denis Vlasenko 2006-11-26 20:13:39 +00:00
  • ec0c920a78 added small doc about tar 'pax header' format Denis Vlasenko 2006-11-26 17:07:38 +00:00
  • 664733f1a3 sort: two small optimizations Denis Vlasenko 2006-11-26 15:48:54 +00:00
  • 0d42ddff70 sort: reformat entire file wrt style. fix single obvious bug: right hand was 0 here: flags & (FLAG_b&FLAG_d&FLAG_f&FLAG_i&FLAG_bb) fixed to use | Denis Vlasenko 2006-11-26 15:48:03 +00:00
  • cf749bc10c small fixes: fix xstrdup to not grossly overallocate memory use xopen instean of xopen3 in several places etc. Denis Vlasenko 2006-11-26 15:45:17 +00:00
  • c1660fea6d tar: refuse to untar files with "/../" components Denis Vlasenko 2006-11-26 15:42:03 +00:00
  • b596335868 tar: correctly skip (and warn about) pax headers. plug memory leak. save 50 bytes. Wooohooo! we finally can unpack kernel tarballs! Denis Vlasenko 2006-11-26 01:46:59 +00:00
  • 7725d0ff5c tar: add support for FEATURE_TAR_GNU_EXTENSIONS so than we can save long names now. We were able to read such tars, but not create. +275 bytes. Without FEATURE_TAR_GNU_EXTENSIONS: -25 bytes. Denis Vlasenko 2006-11-25 23:56:50 +00:00
  • 2d27e4ccbb tee: fix bug: argv[-1] is a no-no! bb_full_fd_action: optimize die_if_ferror: "<applet>: filename" isn't a good err msg, add "..I/O error" Denis Vlasenko 2006-11-25 23:50:28 +00:00
  • 87cd4a87e3 tar: small fix and small optimization Denis Vlasenko 2006-11-25 23:47:32 +00:00
  • 43bddf31e9 small improvements in str -> num convertors Denis Vlasenko 2006-11-25 14:49:04 +00:00
  • f2408e6c3f tar: abort if tarring up file larger that 64Gb (otherwise we will produce garbled tarfile) Denis Vlasenko 2006-11-25 14:48:09 +00:00
  • 5dd27b1ee0 dd: support >2gb values for seek, skip, count Denis Vlasenko 2006-11-25 14:46:21 +00:00
  • ed836cdc30 regularize str -> num convertors Denis Vlasenko 2006-11-25 14:44:13 +00:00
  • 809a6e3104 small optimization Denis Vlasenko 2006-11-24 22:42:44 +00:00
  • 3feb2fc535 tar: fix multiple -t and/or -v options handling. do not process list of files to tar up in reverse order. Denis Vlasenko 2006-11-24 21:55:55 +00:00
  • d031ffa623 tar: sanitize option handling Denis Vlasenko 2006-11-24 21:54:44 +00:00
  • b833ca9d2d tar: buglet fix Denis Vlasenko 2006-11-24 18:53:13 +00:00
  • d6772501db tar: fix and sanitize handling of long filenames/linknames (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 Denis Vlasenko 2006-11-24 17:21:44 +00:00
  • d398ecab9d hunt down improper include <>, make mkswap output 4Gb+ friendly Denis Vlasenko 2006-11-24 15:38:03 +00:00
  • 8023d7df78 svn add makedev.c. Forgot as usual... :( Denis Vlasenko 2006-11-24 15:06:28 +00:00
  • b8a8e601df tar: small fixes: * size-optimize mapping code * kill double close Denis Vlasenko 2006-11-24 14:59:45 +00:00
  • c50f370f98 tar: cache [ug]id->username/groupname mappings. Cuts down amount of open/read/close of /etc/passwd and /etc/group dramatically (we were rereading those for each untarred file!!!) Denis Vlasenko 2006-11-24 14:57:31 +00:00
  • 4fbb584a0e tar: cry murder and bail out if file shrinks under us while we tar it up Denis Vlasenko 2006-11-24 14:55:23 +00:00
  • 0b35470d9b glibc makedev() is a large inline. Save 700+ bytes by wrapping it into a function. Denis Vlasenko 2006-11-24 14:54:27 +00:00
  • cf30cc82a3 header_verbose_list: stop truncating file size in listing Denis Vlasenko 2006-11-24 14:53:18 +00:00
  • 376ce1e775 tar: * 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 Denis Vlasenko 2006-11-24 14:51:01 +00:00
  • 14621929a1 md5sum: make -c grok formats like "68b329da9893e34099c7d8ad5cb9c940 *foo". Also eradicate 95 bytes of bloat. Denis Vlasenko 2006-11-23 15:59:12 +00:00
  • a741b778fe ifupdown: ifconfig said to set iface up before it processes hw %hwaddress%, which then of course fails. Thus we run two separate ifconfig Denis Vlasenko 2006-11-23 15:08:37 +00:00
  • 93ad1c2385 ifupdown: save some 100+ bytes of code in addstr() Denis Vlasenko 2006-11-23 15:07:38 +00:00
  • 4e4662cc73 wget: -O - still outputs progressbar (to stderr) Noticed dead code. -100 bytes. Denis Vlasenko 2006-11-23 13:10:23 +00:00
  • c90c3f30a8 add "wpad" DHCP option. Spotted some optimization opportunities: -80 bytes Denis Vlasenko 2006-11-23 12:57:49 +00:00
  • 48237b0c88 introduce setsockopt_reuseaddr(int fd), setsockopt_broadcast(int fd), use them where appropriate. 200 bytes saved Denis Vlasenko 2006-11-22 23:22:06 +00:00
  • b40bdb383a - add FIXME to brokenness in the installer.. Bernhard Reutner-Fischer 2006-11-22 18:40:06 +00:00
  • 7627cc1454 - fix typo Bernhard Reutner-Fischer 2006-11-22 18:21:08 +00:00
  • 81e264d4af fix double merge Denis Vlasenko 2006-11-22 17:42:06 +00:00
  • be2f9f7fe0 - update TODOs Bernhard Reutner-Fischer 2006-11-22 16:48:29 +00:00
  • 32eddffa30 - revert r15563 (pull current version of taskset off the busybox_scratch branch) Bernhard Reutner-Fischer 2006-11-22 16:39:48 +00:00
  • c8717cd857 telnetd: move generic stuff into libbb. It will make it easy to make other server applets IPv6-aware too. Denis Vlasenko 2006-11-22 16:10:39 +00:00
  • 0801ef28ca telnetd: if FEATURE_IPV6 is on, telnet will NOT work on IPv4 which is kind of stupid Denis Vlasenko 2006-11-22 15:57:52 +00:00
  • 75f8d080a2 telnetd: we were having telnetd with is ONLY inetd or ONLY standalone. What if I need to have both?? This patch introduces CONFIG_FEATURE_TELNETD_STANDALONE: y - both, n - only inetd. Denis Vlasenko 2006-11-22 15:54:52 +00:00
  • d6bbf99a8b - reinstate "make checkhelp" Bernhard Reutner-Fischer 2006-11-22 09:39:48 +00:00
  • aad4999eea #if HAVE_AFINET6 -> #ifdef HAVE_AFINET6 Denis Vlasenko 2006-11-22 02:12:07 +00:00
  • 428f7ae6e2 httpd: comment on QUERY_STRING Denis Vlasenko 2006-11-21 21:35:14 +00:00
  • 8b45837b4c httpd: add link to docs Denis Vlasenko 2006-11-21 21:23:21 +00:00
  • 5e618ff439 xgethostbyname: more readable Denis Vlasenko 2006-11-21 20:35:22 +00:00
  • 7ca3921e5e bb_INET_default[] is really just a const "default", nothing INET-specific Denis Vlasenko 2006-11-21 20:34:21 +00:00
  • 5096246ffb ifconfig: looks like char host[128] is not really needed. Denis Vlasenko 2006-11-21 20:32:38 +00:00
  • f8c8bb1160 wget: yet another contortion for proftpd's PASV response. Denis Vlasenko 2006-11-21 19:10:26 +00:00
  • 921f5df25f - add 'ip rule' support. First take.. text data bss dec hex filename 2999 0 0 2999 bb7 networking/libiproute/iprule.o Bernhard Reutner-Fischer 2006-11-21 15:36:08 +00:00
  • 04b30ba3b8 ifconfig: preparatory patch, no code changes Denis Vlasenko 2006-11-21 14:26:37 +00:00
  • 3aa2d51cd6 insmod: set STRVERSIONLEN = 64, convert #ifdef CONFIG to #if ENABLE, stop using CONFIG_ prefix for non-config-system variables Denis Vlasenko 2006-11-21 14:12:53 +00:00
  • 9229794ab3 insmod_ng_main: -80 bytes. Stopp mmapping, use xmalloc_open_read_close(). Denis Vlasenko 2006-11-21 11:58:14 +00:00
  • a8381948da - style fixes Bernhard Reutner-Fischer 2006-11-21 11:23:11 +00:00
  • 1288722f3e wget: add TODO Denis Vlasenko 2006-11-21 11:15:58 +00:00
  • 40f62a8c3d wget: fix ftp PASV mode ("numeric" check was too strict) Denis Vlasenko 2006-11-21 11:04:31 +00:00
  • 3e7ef7ead4 - update defconfig Bernhard Reutner-Fischer 2006-11-21 10:53:05 +00:00
  • 9cade08917 wget: reduce likelihood of ETA overflow (especially with !LFS) Denis Vlasenko 2006-11-21 10:43:02 +00:00
  • 04291bc5ae httpd: slight reduction of #ifdef forest few other applets: #ifdef CONFIG_ -> #if ENABLE_ traceroute: fix exposed bugs defconfig: update Denis Vlasenko 2006-11-21 10:15:25 +00:00
  • 3eb91c2e35 cpio: (allegedly) fix bug 0001095: "cpio hardlink support and possible memory leak fix" Denis Vlasenko 2006-11-21 00:55:46 +00:00
  • 5d148e2646 httpd: fix cgi-bin/index.cgi support, add example of it, stat: fix end-of-line if format is specified (wasn't printing it), fix %z (time) format to match coreutils 6.3 Denis Vlasenko 2006-11-21 00:12:09 +00:00
  • fcdb00f735 httpd: LC_TIME locale _must_ be POSIX to httpd! We speak over the net! Denis Vlasenko 2006-11-21 00:09:37 +00:00
  • 6c85ddc850 httpd: add support for directory indexer (cgi-bin/index.cgi) Denis Vlasenko 2006-11-21 00:08:39 +00:00
  • a3ee69fa6c httpd: get rid of big, useless blocks (deindent, bring code under 80 columns) Denis Vlasenko 2006-11-21 00:07:31 +00:00