aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* make mount ignore -n when CONFIG_FEATURE_MTAB_SUPPORT is disabledandersen2004-04-121-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8733 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix compile error if CONFIG_FEATURE_IP_ADDR isnt enabledbug12004-04-121-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8732 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix up conditional compile of files needed by ip appletsbug12004-04-121-0/+36
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8731 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add a comment explaining why we have to check for an extra \nbug12004-04-091-1/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8727 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix ftp resumebug12004-04-081-5/+9
| | | | | | | Terminate returned message at <CRLF> so strtoul returns without error git-svn-id: svn://busybox.net/trunk/busybox@8726 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Vladimir N. Oleynik writes:andersen2004-04-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Hi. Last changes (rev 1.12) to recursive_actions() by Christian Grigis have problem. Test for demonstrate: $ mkdir aaa bbb ccc $ su # chown root bbb # chmod 700 bbb # exit $ busybox chmod 777 -R . ./bbb: Permision denied But "./ccc" mode not changed. Previous variant works fine, errors skiped and continued recursion. --w vodz git-svn-id: svn://busybox.net/trunk/busybox@8725 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add the Tritton Technologies NAS120andersen2004-04-071-0/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8724 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Document insmod -oandersen2004-04-071-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8723 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Update for releaseandersen2004-04-071-0/+26
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8721 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Update changelog for releaseandersen2004-04-071-393/+1511
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8720 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix urlandersen2004-04-071-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8719 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Minor updateandersen2004-04-071-4/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8718 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Mention Acronis PartitionExpertandersen2004-04-071-0/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8717 69ca8d6d-28ef-0310-b511-8ec308f3f277
* More doc updatesandersen2004-04-073-20/+33
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8716 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add an example inetd.conf fileandersen2004-04-071-0/+73
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8715 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove the CONFIG_FEATURE_SH_APPLETS_ALWAYS_WIN option. It was sortofandersen2004-04-078-43/+8
| | | | | | | stupid and didn't work properly anyways. git-svn-id: svn://busybox.net/trunk/busybox@8714 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Update the default configandersen2004-04-071-50/+81
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8713 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Bump version to -pre9andersen2004-04-061-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8712 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix buffalo urlandersen2004-04-061-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8711 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Yet more doc updatesandersen2004-04-063-93/+178
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8710 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Yet more doc cleanups. Many thanks to Robert P. J. Day forandersen2004-04-061-41/+46
| | | | | | | kindly reviewing the existing docs and providing helpful feedback. git-svn-id: svn://busybox.net/trunk/busybox@8709 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Seem not many people are using 'ipaddr' since it hasandersen2004-04-061-1/+1
| | | | | | | never worked.... Most people use 'ip addr foo' I suppose. git-svn-id: svn://busybox.net/trunk/busybox@8708 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix indentingandersen2004-04-061-12/+12
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8707 69ca8d6d-28ef-0310-b511-8ec308f3f277
* yet-more doc updates and cleanupsandersen2004-04-061-103/+106
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8706 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Yet more doc updatesandersen2004-04-063-56/+58
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8705 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Eliminate all trace of the sgml based docs. It was a noble effort,andersen2004-04-063-4090/+12
| | | | | | | but it just never worked out... git-svn-id: svn://busybox.net/trunk/busybox@8704 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix it so build dependancies actually work and do something usefulandersen2004-04-061-2/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8703 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix it so usage is _always_ in sync with applets.c. Previously,andersen2004-04-065-23/+12
| | | | | | | broken depends allowed these to get out of sync. git-svn-id: svn://busybox.net/trunk/busybox@8702 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Michael Tokarev, mjt at tls dot msk dot ru writes:andersen2004-04-061-2/+4
| | | | | | | | | | | | | Fix parsing of all tag-value pairs (in modules.conf in particular). Without this fix, code chokes badly on lines where either value or both tag+value are missing, like bare alias line, or alias w/o the value like alias some-module (syntactically incorrect, but no need for coredumps either). git-svn-id: svn://busybox.net/trunk/busybox@8700 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Michael Tokarev, mjt at tls dot msk dot ru writes:andersen2004-04-061-1/+1
| | | | | | | | | | | alias 'off' parsing fix. It is not alias off module it is alias module off git-svn-id: svn://busybox.net/trunk/busybox@8699 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Michael Tokarev, mjt at tls dot msk dot ru writes:andersen2004-04-061-2/+2
| | | | | | | | | | | | | | | | Initialize all fields of struct dep_t. Without that, e.g. `busybox modprobe -v char-major-10-144' *sometimes* fails this way (strace): write(1, "insmod nvram `\213\f\10\n", 21) = 21 Note the garbage after module name which is taken from the m_options field, which is not initialized in the alias reading/parsing part. (Shell properly complains to this command, telling it can't find the closing backtick) git-svn-id: svn://busybox.net/trunk/busybox@8698 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Christian Grigis, christian.grigis at smartdata dot ch writes:andersen2004-04-062-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hello everyone, Busybox's insmod fails to locate a module when that module is the only one existing in the /lib/modules directory (with a unique name). Example: # find /lib/modules/ -type f /lib/modules/kernel/drivers/char/bios.o # insmod bios insmod: bios.o: no module by that name found # touch /lib/modules/dummy # find /lib/modules/ -type f /lib/modules/kernel/drivers/char/bios.o /lib/modules/dummy # insmod bios Using /lib/modules/kernel/drivers/char/bios.o As long as there is another file in the /lib/modules directory, insmod finds it OK. I tracked the problem down to 'check_module_name_match()' in insmod.c: It returns TRUE when a match is found, and FALSE otherwise. In the case where there is only one module in the /lib/modules directory (or more that one module, but all with the same name), 'recursive_action()' will return TRUE and we end up on line 4196 in 'insmod.c' which returns an error. [The reason it works with more than one module with different names is that in this case there will always be one not matching, 'recursive_action()' will return FALSE and we end up in line 4189.] Now, from the implementation of 'recursive_action()' and from other usages of it (tar.c, etc.), it seems to me that FALSE should be returned to indicate that we want to stop the recursion, so TRUE and FALSE should be inverted in 'check_module_name_match()'. At the same time, 'recursive_action()' continues to recurse even after the recursive call has returned FALSE; again in my understanding and other usages of it, we can safely stop recursing at this point. Here is my patch against 1.00-pre8: git-svn-id: svn://busybox.net/trunk/busybox@8697 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Yet more 'make allyesconfig' adjustmentsandersen2004-04-061-0/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8696 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Make 'allyesconfig' be a bit less stupidandersen2004-04-061-0/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8695 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Minor tar test updateandersen2004-04-061-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8694 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Simplify, make formatting better match the procps versionandersen2004-04-061-3/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8693 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Kill off the old 'tests' stuff. Write a ton of new tests for theandersen2004-04-0683-1570/+316
| | | | | | | | | | 'testsuite' dir. Fix a bunch of broken tests. Fix the testsuite 'runtest' script so it actually reports all failures and provides meaningful feedback. -Erik git-svn-id: svn://busybox.net/trunk/busybox@8692 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix non standard 'date -R' formattingandersen2004-04-061-4/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8691 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix the test suite script so it actually works and actually flagsandersen2004-04-061-4/+13
| | | | | | | | all errors as such. Make verbose mode exit on FAIL and provide a printout of the failed test run. git-svn-id: svn://busybox.net/trunk/busybox@8690 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Some test additionsandersen2004-04-055-0/+42
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8689 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch adding support for ibs= and obs= to ddandersen2004-04-051-0/+252
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8688 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Per suggestion by Pawel Sakowski, fix the dash_arith() prototypeandersen2004-04-051-2/+2
| | | | | | | to return a long. We were needlessly truncating to an int. git-svn-id: svn://busybox.net/trunk/busybox@8687 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Tito, farmatito at tiscali dot it writes:andersen2004-04-051-31/+32
| | | | | | | | | | | | | | | | | | | | | | Hi to all, I discovered a little bug in hdparm.c (really two little bugs...I've made...sigh! Mea culpa). Some vars were modified only locally and this could lead to wrong results to be displayed with the -I switch and maybe with others. Attached is a patch that fix it ( +88b). Also attached is second patch that reduces the size a little bit: text data bss dec hex filename 27984 624 900 29508 7344 hdparm.o (without bug-fix) 28072 624 900 29596 739c hdparm.o (with bug-fix) 28141 624 900 29665 73e1 hdparm.o (original) but maybe this one can wait as we are in a feature freeze. Ciao, Tito git-svn-id: svn://busybox.net/trunk/busybox@8686 69ca8d6d-28ef-0310-b511-8ec308f3f277
* rename uncompress.c to decompress_uncompress.candersen2004-04-053-1279/+4
| | | | | | | rename unzip.c to decompress_unzip.c git-svn-id: svn://busybox.net/trunk/busybox@8685 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Everything should be made as simple as possible. But no simpler.andersen2004-04-031-5/+11
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8681 69ca8d6d-28ef-0310-b511-8ec308f3f277
* The last patch broke:landley2004-04-011-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sed -i "/^boo/a fred" ipsec.conf Which works in gnu sed. (And is _supposed_ to strip all the whitespace before "fred".) It also broke: sed -i -e "/^boo/a \\" -e " fred" ipsec.conf I.E. there can legally be spaces between the a and the backslash at the end of the line. And strangely enough, gnu sed accepts the following syntax as well: sed -i "/^boo/a \\ fred" ipsec.conf Which is a way of having the significant whitespace at the start of the line, all on one line. (But notice that the whitespace BEFORE the slash is still stripped, as is the slash itself. And notice that the naieve placement of "\n" there doesn't work, it puts an n at the start of the appended line. The double slashing is for shell escapes because you could escape the quote, you see. It's turned into a single backslash. But \n there is _not_ turned into a newline by the shell. So there.) This makes all three syntaxes work in my tests. I should probably start writing better documentation at some point. I posted my current sedtests.py file to the list, which needs a lot more tests added as well... git-svn-id: svn://busybox.net/trunk/busybox@8680 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Hideki IWAMOTO adding support for 'cmp -n'andersen2004-03-311-0/+377
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8677 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Junio Hamano, junio at twinsun dot com writes:andersen2004-03-311-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The sed command in busybox 1.0.0-pre8 loses leading whitespace in 'a' command ('i' and 'c' commands are also affected). A patch to fix this is attached at the end of this message. The following is a transcript that reproduces the problem. The first run uses busybox 1.0.0-pre3 as "/bin/sed" command, which gets the expected result. Later in the test, /bin/sed symlink is changed to point at busybox 1.0.0-pre8 and the test script is run again, which shows the failure. === reproduction recipe === * Part 1. Use busybox 1.0.0-pre3 as sed; this works. root# cd /tmp root# cat 1.sh #!/bin/sh cd /tmp rm -f ipsec.conf ipsec.conf+ cat >ipsec.conf <<\EOF version 2.0 config setup klipsdebug=none plutodebug=none plutostderrlog=/dev/null conn %default keyingtries=1 ... EOF sed -e '/^config setup/a\ nat_traversal=yes' ipsec.conf >ipsec.conf+ mv -f ipsec.conf+ ipsec.conf root# sh -x 1.sh + cd /tmp + rm -f ipsec.conf ipsec.conf+ + cat + sed -e /^config setup/a\ nat_traversal=yes ipsec.conf + mv -f ipsec.conf+ ipsec.conf root# cat ipsec.conf version 2.0 config setup nat_traversal=yes klipsdebug=none plutodebug=none plutostderrlog=/dev/null conn %default keyingtries=1 ... root# sed --version sed: invalid option -- - BusyBox v1.00-pre3 (2004.02.26-18:47+0000) multi-call binary Usage: sed [-nef] pattern [files...] * Part 2. Continuing from the above, use busybox 1.0.0-pre8 as sed; this fails. root# ln -s busybox-pre8 /bin/sed-8 root# mv /bin/sed-8 /bin/sed root# sed --version This is not GNU sed version 4.0 root# sed -- BusyBox v1.00-pre8 (2004.03.30-02:44+0000) multi-call binary Usage: sed [-nef] pattern [files...] root# sh -x 1.sh + cd /tmp + rm -f ipsec.conf ipsec.conf+ + cat + sed -e /^config setup/a\ nat_traversal=yes ipsec.conf + mv -f ipsec.conf+ ipsec.conf root# cat ipsec.conf version 2.0 config setup nat_traversal=yes klipsdebug=none plutodebug=none plutostderrlog=/dev/null conn %default keyingtries=1 ... root# === reproduction recipe ends here === This problem was introduced in 1.0.0-pre4. The problem is that the command argument parsing code strips leading whitespaces too aggressively. When running the above example, the piece of code in question gets "\n\tnat_traversal=yes" as its argument in cmdstr variable (shown part in the following patch). What it needs to do at this point is to strip the first newline and nothing else, but it instead strips all the leading whitespaces at the beginning of the string, thus losing the tab character. The following patch fixes this. git-svn-id: svn://busybox.net/trunk/busybox@8676 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Thomas Winkler:andersen2004-03-311-3/+9
| | | | | | | | | | ifconfig did not look up hostnames, so ifconfig lo localhost would not work, you have to do ifconfig lo 127.0.0.1 git-svn-id: svn://busybox.net/trunk/busybox@8675 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Thomas Winkler showing the the system time for each processandersen2004-03-311-0/+51
| | | | | | | when running 'top' git-svn-id: svn://busybox.net/trunk/busybox@8674 69ca8d6d-28ef-0310-b511-8ec308f3f277