aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* archival: note implicit dependencies between lzop & bbunzipMike Frysinger2013-03-032-0/+2
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* decompress_unlzma: move function, no code changesDenys Vlasenko2013-03-011-7/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* decompress_unlzma: 10% speedup in "small" codeDenys Vlasenko2013-03-011-1/+1
| | | | | | | | text data bss dec hex filename 1796 0 0 1796 704 decompress_unlzma.o 1801 0 0 1801 709 decompress_unlzma.o Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* decompress_unlzma: make "fast" version a bit smallerDenys Vlasenko2013-03-011-10/+4
| | | | | | | | | | It is not slower. In fact it seems a tiny bit faster too. text data bss dec hex filename 2827 0 0 2827 b0b decompress_unlzma.o 2797 0 0 2797 aed decompress_unlzma.o Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* lzop: fiq -q and OPTION_DECOMPRESS mismatchDenys Vlasenko2013-03-011-15/+16
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* bbunzip: fix order of flags vs bit definesMike Frysinger2013-02-281-4/+4
| | | | | | | Too much code shuffling. Reported-by: Mandeep Singh Baines <msb@chromium.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* bbunzip: ignore the -q flag with the decompressorsMike Frysinger2013-02-281-6/+7
| | | | | | | | The -q flag is used in shell scripts for suppressing output. Have our applets swallow the flag for compatibility. Reported-by: Mandeep Singh Baines <msb@chromium.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* ifupdown: support "source" stanza in /etc/network/interfacesDenys Vlasenko2013-02-281-6/+13
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* zcat: fix "zcat FILE" trying to do detection twiceDenys Vlasenko2013-02-281-8/+7
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* zcat: if seamless uncompressors are defined, autodetect file's formatDenys Vlasenko2013-02-281-14/+40
| | | | | | | | | function old new delta bbunpack 526 622 +96 packed_usage 29335 29341 +6 gunzip_main 64 67 +3 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix error message on failure to oen /dev/null; fix zcat's help textDenys Vlasenko2013-02-281-6/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* code shrink in check_errors_in_children()Denys Vlasenko2013-02-281-3/+8
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* pgrep: fix a "missing closing paren" build errorDenys Vlasenko2013-02-281-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ifplugd: make -k send SIGINT, not SIGQUITDenys Vlasenko2013-02-281-1/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* pgrep: fix -x optionBernhard Walle2013-02-281-1/+1
| | | | | | | | | | | | | | Because when -x is used (exact match), then we cannot compile the regular expression with REG_NOSUB. The manual page regcomp(3) states in section "Byte offsets": Unless REG_NOSUB was set for the compilation of the pattern buffer, it is possible to obtain substring match addressing information. The problem was detected on an ARM system with glibc 2.16. Signed-off-by: Bernhard Walle <bernhard@bwalle.de> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Fix config help textDenys Vlasenko2013-02-281-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* make --help return exitcode 0. Closes 5612Denys Vlasenko2013-02-281-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* run-parts: fix unicode creep in --helpPeter Korsgaard2013-02-281-3/+3
| | | | | Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* nc_bloaty: support -ll and -lk. Closes 2245Denys Vlasenko2013-02-281-18/+40
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* nc: don't redirect stderr to network in -e PROG modeDenys Vlasenko2013-02-281-9/+9
| | | | | | This in incompatible with nc-1.10, but makes a lot of sense. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* nameif: fix use-after-free in ENABLE_FEATURE_CLEAN_UP codeThomas De Schampheleire2013-02-281-6/+9
| | | | | Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* run-parts: stop providing incompatible short optionsDenys Vlasenko2013-02-281-32/+25
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* run-parts: add --exit-on-error | -e supportPeter Korsgaard2013-02-281-3/+10
| | | | | | | | | | The "big" run-parts supports a handy --exit-on-error to stop execution on errors, so lets support it as well. Upstream doesn't have a short option for it, but I've used '-e' for busybox. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* xz: fix put_unaligned_{l,b}e32Leonid Lisovskiy2013-02-271-2/+2
| | | | | Signed-off-by: Leonid Lisovskiy <lly.dev@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* lineedit: initialize delptrShawn J. Goff2013-02-271-0/+1
| | | | | | | | In vi mode, the 'p' and 'P' commands caused a segfault when nothing had been put in the buffer yet because the delptr was not initialized. Signed-off-by: Shawn J. Goff <shawn7400@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* xz: support concatenated .xz streamsLasse Collin2013-02-271-7/+36
| | | | | | | | | function old new delta xz_dec_reset - 77 +77 unpack_xz_stream 2402 2397 -5 Signed-off-by: Lasse Collin <lasse.collin@tukaani.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* xz: mention xzminidec.c in READMELasse Collin2013-02-271-1/+1
| | | | | Signed-off-by: Lasse Collin <lasse.collin@tukaani.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* xz: fix incorrect XZ_BUF_ERRORLasse Collin2013-02-271-7/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | xz_dec_run() could incorrectly return XZ_BUF_ERROR if all of the following was true: - The caller knows how many bytes of output to expect and only provides that much output space. - When the last output bytes are decoded, the caller-provided input buffer ends right before the LZMA2 end of payload marker. So LZMA2 won't provide more output anymore, but it won't know it yet and thus won't return XZ_STREAM_END yet. - A BCJ filter is in use and it hasn't left any unfiltered bytes in the temp buffer. This can happen with any BCJ filter, but in practice it's more likely with filters other than the x86 BCJ. This fixes <https://bugzilla.redhat.com/show_bug.cgi?id=735408> where Squashfs thinks that a valid file system is corrupt. Thanks to Jindrich Novy for telling me that such a bug report exists, Phillip Lougher for providing excellent debug info, and other people on #fedora-ppc. This also fixes a similar bug in single-call mode where the uncompressed size of a XZ Block using BCJ + LZMA2 was 0 bytes and caller provided no output space. Many empty .xz files don't contain any Blocks and thus don't trigger this bug. This also tweaks a closely related detail: xz_dec_bcj_run() could call xz_dec_lzma2_run() to decode into temp buffer when it was known to be useless. This was harmless although it wasted a minuscule number of CPU cycles. Signed-off-by: Lasse Collin <lasse.collin@tukaani.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* xz: fix decoding of LZMA2 streams having no uncompressed data.Lasse Collin2013-02-271-3/+3
| | | | | | | | | | | | | No .xz encoder creates files with empty LZMA2 streams, but such files would still be valid and decompressors must accept them. Note that empty .xz files are a different thing than empty LZMA2 streams. This bug didn't affect typical .xz files that had no uncompressed data. Signed-off-by: Lasse Collin <lasse.collin@tukaani.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* cz: add C++ support to xz.hLasse Collin2013-02-271-0/+9
| | | | | Signed-off-by: Lasse Collin <lasse.collin@tukaani.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* xz: remove an empty line from xz_dec_lzma2.cLasse Collin2013-02-271-1/+0
| | | | | Signed-off-by: Lasse Collin <lasse.collin@tukaani.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* xz: make bcj_x86_test_msbyte() an inline functionLasse Collin2013-02-271-2/+5
| | | | | Signed-off-by: Lasse Collin <lasse.collin@tukaani.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* xz: add a comment about using uint32_t as vli_typeLasse Collin2013-02-271-2/+7
| | | | | Signed-off-by: Lasse Collin <lasse.collin@tukaani.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* xz: avoid "NOTE:" in xz.hLasse Collin2013-02-271-4/+4
| | | | | Signed-off-by: Lasse Collin <lasse.collin@tukaani.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* xz: update READMELasse Collin2013-02-271-2/+2
| | | | | Signed-off-by: Lasse Collin <lasse.collin@tukaani.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* xz: omit explicit \0 from HEADER_MAGICLasse Collin2013-02-271-1/+1
| | | | | Signed-off-by: Lasse Collin <lasse.collin@tukaani.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Fix move_to_unaligned16Denys Vlasenko2013-02-271-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mdev: improve $SEQ handling; improve debug loggingDenys Vlasenko2013-02-272-91/+181
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sequential run of concurrent mdev's was too simplistic: they waited for /dev/mdev.seq to match. This could sometimes cause cumulative loss of time on the order of a second. Added SIGCHLD signaling from exiting mdev to all other mdev's. Added debugging required to see that code actually works as intended. Example of /dev/mdev.log (with "woken up" elevated from dbg lvl 3 to 2): mdev[1023]: first seq written ^^^^ seq, not pid mdev[1023]: 35.022395 ACTION:add SUBSYSTEM:module DEVNAME:(null) DEVPATH:/module/lib80211 mdev[1023]: rule matched, line -1 ^^^^^^^ means "default rule" mdev[1023]: 35.022676 exiting ^^^^^^^^^ second,usec timestamp mdev[1024]: 35.069691 ACTION:add SUBSYSTEM:vc DEVNAME:vcs9 DEVPATH:/devices/virtual/vc/vcs9 mdev[1024]: dev 7,9 mdev[1025]: 35.069889 waiting for '1024' mdev[1026]: 35.069946 waiting for '1024' mdev[1027]: 35.070151 waiting for '1024' mdev[1024]: rule matched, line -1 mdev[1024]: mknod vcs9 (7,9) 20660 0:0 mdev[1024]: 35.070346 exiting mdev[1025]: woken up mdev[1026]: woken up mdev[1025]: 35.071213 ACTION:add SUBSYSTEM:vc DEVNAME:vcsa9 DEVPATH:/devices/virtual/vc/vcsa9 ^^^^^^^^^ took only a millisecond to start running after prev mdev exited mdev[1025]: dev 7,137 mdev[1027]: woken up mdev[1025]: rule matched, line -1 mdev[1025]: mknod vcsa9 (7,137) 20660 0:0 mdev[1025]: 35.072109 exiting function old new delta mdev_main 849 1372 +523 curtime - 59 +59 dirAction 87 134 +47 static.ts - 8 +8 keywords 19 12 -7 make_device 2189 2119 -70 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpc: tweak math shell style with the metric varMike Frysinger2013-02-271-1/+2
| | | | | | | | Some shells (like dash) are lame and omit the POSIX increment/decrement feature (because it is listed as optional). Tweak the shell script to work in all POSIX variants. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* udhcpc: support resolv.conf symlinksMike Frysinger2013-02-271-4/+8
| | | | | | | | Often it is desirable to have /etc/ be on read-only storage (well, the whole rootfs) but have things like /etc/resolv.conf be symlinks to a writable location. Tweak the simple script to support that. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* mdev: add environment variable matchDenys Vlasenko2013-02-262-8/+73
| | | | | | | | | | | | | function old new delta make_device 1998 2189 +191 clean_up_cur_rule 61 96 +35 dirAction 75 87 +12 mdev_main 838 849 +11 packed_usage 29272 29273 +1 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 5/0 up/down: 250/0) Total: 250 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* move endofname() to libbbDenys Vlasenko2013-02-265-38/+30
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tail: make help text for -n +N syntax more correctDenys Vlasenko2013-02-251-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* head: support -n -NUM and -c -NUMDenys Vlasenko2013-02-251-22/+128
| | | | | | | | | | function old new delta head_main 406 832 +426 packed_usage 29234 29252 +18 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/0 up/down: 444/0) Total: 444 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* head,tail: use common suffix struct. simplify help text.Denys Vlasenko2013-02-255-27/+40
| | | | | | | | | | | | | | | | function old new delta head_tail_suffixes - 32 +32 head_main 415 406 -9 packed_usage 29252 29234 -18 tail_suffixes 32 - -32 head_suffixes 32 - -32 ------------------------------------------------------------------------------ (add/remove: 2/2 grow/shrink: 0/2 up/down: 32/-91) Total: -59 bytes text data bss dec hex filename 890474 497 7584 898555 db5fb busybox_old 890415 497 7584 898496 db5c0 busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* rpm: unmap rpm file before working with next oneDenys Vlasenko2013-02-201-3/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* rpm: stop using statics; move main() to the end of the source fileDenys Vlasenko2013-02-201-146/+141
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* rpm: use "create+rename" method of replacing existing filesDenys Vlasenko2013-02-203-3/+19
| | | | | | | | Users were reporting getting errors like "ls: error while loading shared libraries: libc.so.6: ELF load command past end of file" while rpm was unpacking glibc tarball. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* rpm: make -ql display more compatible; improve help textDenys Vlasenko2013-02-201-32/+36
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fdisk_sun: fix partition alignmentAaro Koskinen2013-02-111-3/+6
| | | | | | | | | When the display unit is sectors, the partition alignment will convert the partition start to a wrong unit (it should always be in sectors). Fix this. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>