Commit Graph

  • 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
  • 0bb993f39b httpd: More robust Content-length: parsing, code reorganization (less indented) Denis Vlasenko 2006-11-21 00:06:28 +00:00
  • 736230e209 dhcprelay: new applet Denis Vlasenko 2006-11-20 19:40:36 +00:00
  • c9cdeaa3fe add compile-time check for correct DHCP packet size Denis Vlasenko 2006-11-20 01:13:09 +00:00
  • 4a5cf16a36 login: use %s - we know that string is not too long there ping[6]: use getopt32: smaller (-50 bytes) and handles -c6 correctly (was requiring '-c 6' with mandatory space) Denis Vlasenko 2006-11-20 00:48:22 +00:00
  • 6a353c8158 mount: if FILE* is NULL, it's not wise to use it. Denis Vlasenko 2006-11-19 17:34:57 +00:00
  • 83edaf3fd6 svlogd: log full lines to stderr too, and also stop using stdio for that Denis Vlasenko 2006-11-19 17:33:54 +00:00
  • 22dcd04f8f mkdir: style fix Denis Vlasenko 2006-11-19 13:53:50 +00:00
  • 89f0b3486d rodata cleanup. "unable to" == "cannot". -300 bytes Denis Vlasenko 2006-11-18 22:04:09 +00:00
  • 61126ab30a small fixes: using fd-based io instead of FILE*-based, missed O_TRUNC, etc Denis Vlasenko 2006-11-18 22:03:26 +00:00
  • 5a3395bc01 udhcp: fix indentation and style. Eliminate (group) a lot of smallish *.h files Remove lots of unneeded #includes Denis Vlasenko 2006-11-18 19:51:32 +00:00
  • abfc4cf6d8 Add names of people historically linked to bbox project Denis Vlasenko 2006-11-18 16:30:04 +00:00
  • f7eaccde13 nc: fix --help text Denis Vlasenko 2006-11-18 02:17:37 +00:00
  • a7189f01a4 add -Wundef, fix uncovered bugs Denis Vlasenko 2006-11-17 20:29:00 +00:00
  • 04c6386c45 forgot about avn add... :( Denis Vlasenko 2006-11-17 18:58:49 +00:00
  • 8a00f44bf4 runit: add runsv, runsvdir and sv. Oh yes. It even seems to work. +11K. :( Denis Vlasenko 2006-11-17 18:58:16 +00:00
  • a5342b4541 httpd: make Bernhard happier Denis Vlasenko 2006-11-17 18:26:57 +00:00
  • 8bfd215fb2 - Set INSTALL_OPTS according to the config. Bernhard Reutner-Fischer 2006-11-17 13:54:29 +00:00
  • 193bcf381e - fix generation of the busybox.links install script inputfile Bernhard Reutner-Fischer 2006-11-17 13:17:04 +00:00
  • 68532b3578 - typo fix Bernhard Reutner-Fischer 2006-11-17 12:47:50 +00:00
  • e766715032 - end may be used uninitialized. - TODO: should eventually use skip_whitespace there Bernhard Reutner-Fischer 2006-11-17 11:28:00 +00:00
  • b3a071543d httpd: reduce ifdef forest. comment out redundant PATH setting Denis Vlasenko 2006-11-16 18:04:43 +00:00
  • d4f3d1a4bd httpd: fix union aliasing bug symptom: wget of non-existent file gets redirected to /text/html/something on second and subsequend wget attempts fix double-free bug symptom: glibc caught double-free (we didn't NULL config->xxx ptrs after free) Denis Vlasenko 2006-11-16 16:20:12 +00:00
  • 0871bc89fb httpd: add -i (inetd) and -f (foreground) otions. -i makes possible to run httpd in both inetd and standalone mode without recompile (or need to have two different binaries) Denis Vlasenko 2006-11-16 16:17:02 +00:00
  • e867b7ce86 httpd: stop being silly with setenv Denis Vlasenko 2006-11-16 16:12:09 +00:00
  • 83ea643d8d svlogd: new applet. +9k. Still too big, but it was 12k yesterday. Denis Vlasenko 2006-11-16 02:27:24 +00:00
  • 3672fe9e91 remove duplicate flag decls Mike Frysinger 2006-11-15 21:52:10 +00:00
  • 1119972f91 umount: umount -a shouldn't stop on first failure Denis Vlasenko 2006-11-12 17:23:45 +00:00
  • 6c5e5a0e85 httpd: cosmetic fixes (the bug which was being hunted down turned out to be nonexistent :) Denis Vlasenko 2006-11-10 23:28:57 +00:00
  • 067e3f031a wget: fix error message. 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 Denis Vlasenko 2006-11-10 23:25:53 +00:00
  • 07159f0f0e add && !defined(__UCLIBC__) to static link warning check Denis Vlasenko 2006-11-09 00:00:12 +00:00