aboutsummaryrefslogtreecommitdiff
path: root/miscutils (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Bernhard Fischer provided a mountpoint(1) applet. This is apparently somethinglandley2005-08-203-0/+77
| | | | | | | sysvinit provides, and which is used by the debian init scripts. git-svn-id: svn://busybox.net/trunk/busybox@11219 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Major rewrite of mount, umount, losetup. Untangled lots of code, shrunklandley2005-08-101-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | things down a bit, fixed a number of funky corner cases, added support for several new features (things like mount --move, mount --bind, lazy unounts, automatic detection of loop mounts, and so on). Probably broke several other things, but it's fixable. (Bang on it, tell me what doesn't work for you...) Note: you no longer need to say "-o loop". It does that for you when necessary. Still need to add "user mount" support, which involves making mount suid. Not too hard to do under the new infrastructure, just haven't done it yet... The previous code had the following notes, that belong in the version control comments: - * 3/21/1999 Charles P. Wright <cpwright@cpwright.com> - * searches through fstab when -a is passed - * will try mounting stuff with all fses when passed -t auto - * - * 1999-04-17 Dave Cinege...Rewrote -t auto. Fixed ro mtab. - * - * 1999-10-07 Erik Andersen <andersen@codepoet.org>. - * Rewrite of a lot of code. Removed mtab usage (I plan on - * putting it back as a compile-time option some time), - * major adjustments to option parsing, and some serious - * dieting all around. - * - * 1999-11-06 mtab support is back - andersee - * - * 2000-01-12 Ben Collins <bcollins@debian.org>, Borrowed utils-linux's - * mount to add loop support. - * - * 2000-04-30 Dave Cinege <dcinege@psychosis.com> - * Rewrote fstab while loop and lower mount section. Can now do - * single mounts from fstab. Can override fstab options for single - * mount. Common mount_one call for single mounts and 'all'. Fixed - * mtab updating and stale entries. Removed 'remount' default. - * git-svn-id: svn://busybox.net/trunk/busybox@11099 69ca8d6d-28ef-0310-b511-8ec308f3f277
* commiting:pgf2005-08-013-0/+53
| | | | | | | | 0000028 03-16-05 patch: new setsid applet git-svn-id: svn://busybox.net/trunk/busybox@11015 69ca8d6d-28ef-0310-b511-8ec308f3f277
* new config display applet, from bug 46. i've changed the namepgf2005-08-013-0/+16
| | | | | | | | of the applet from "config" to "bbconfig", and renamed the source filenames and symbols to match appropriately. git-svn-id: svn://busybox.net/trunk/busybox@11006 69ca8d6d-28ef-0310-b511-8ec308f3f277
* eat leading whitespace with preprocessorvapier2005-07-311-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10995 69ca8d6d-28ef-0310-b511-8ec308f3f277
* use toplevel ARFLAGS and update default ARFLAGS to be quietvapier2005-07-271-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10923 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixup makedevs to handle regular files, and also fixandersen2005-07-181-1/+32
| | | | | | | it to properly update file permissions as specified. git-svn-id: svn://busybox.net/trunk/busybox@10854 69ca8d6d-28ef-0310-b511-8ec308f3f277
* a bit more polishandersen2005-07-181-5/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10848 69ca8d6d-28ef-0310-b511-8ec308f3f277
* a bit of polish on makedevsandersen2005-07-181-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10847 69ca8d6d-28ef-0310-b511-8ec308f3f277
* the makedevs config option was pretty much totally brokenandersen2005-07-181-1/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10846 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixup device table based makedevs so it actually worksandersen2005-07-181-28/+41
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10845 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch by jonlar in Bug 312 to split the U_W_TMP feature into sep UTMP and ↵vapier2005-07-011-1/+1
| | | | | | WTMP options git-svn-id: svn://busybox.net/trunk/busybox@10679 69ca8d6d-28ef-0310-b511-8ec308f3f277
* applets specified as _BB_SUID_ALWAYS in applets.h should also selectandersen2005-06-231-0/+1
| | | | | | | CONFIG_FEATURE_SUID to ensure proper behavior when installed. git-svn-id: svn://busybox.net/trunk/busybox@10565 69ca8d6d-28ef-0310-b511-8ec308f3f277
* About time to just apply this and kill off the patchesandersen2005-06-092-30/+184
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10485 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Tito posted a devfsd error message fix. It's highly deprecated and willlandley2005-06-071-31/+28
| | | | | | | | | | | | | | | | | | | | | presumably be removed eventually (use udev), but as long as it's in there. Tito says: The sense of this patch is to call: read_config_file_err: #ifdef CONFIG_DEVFSD_VERBOSE msg_logger(((optional == 0 ) && (errno == ENOENT))? DIE : NO_DIE, LOG_ERR, "read config file: %s: %m\n", path); #else if(optional == 0 && errno == ENOENT) exit(EXIT_FAILURE); #endif just after the failure of the call that set errno ( stat and fopen) to avoid false error messages. git-svn-id: svn://busybox.net/trunk/busybox@10480 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Clean up strings.c to use busybox's option processing. Bug 006, apparently.landley2005-06-071-71/+54
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10479 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Tito pointed out I'd broken -t (argv[optind] can't be before getulflags),landley2005-05-151-17/+13
| | | | | | | and replaced the use of system() (and resulting security implications). git-svn-id: svn://busybox.net/trunk/busybox@10333 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add automatic umount support to eject command. Patch from Tito,landley2005-05-142-27/+23
| | | | | | | | | | | with tweaks from Mike Frysinger and Rob Landley. Note: this will still fail to umount a path that contains an ' or \ character. Is it worth the extra size to filter for that? git-svn-id: svn://busybox.net/trunk/busybox@10325 69ca8d6d-28ef-0310-b511-8ec308f3f277
* import eject by Peter Willis / Tito Ragusavapier2005-05-113-13/+91
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10288 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Bernhard Fischer to make a bunch of symbols staticandersen2005-04-161-2/+2
| | | | | | | which were otherwise cluttering the global namespace. git-svn-id: svn://busybox.net/trunk/busybox@10121 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Make certain clients of bb_make_directory default to honoringandersen2004-10-131-1/+1
| | | | | | | the user's umask git-svn-id: svn://busybox.net/trunk/busybox@9413 69ca8d6d-28ef-0310-b511-8ec308f3f277
* egor duda writes:andersen2004-10-082-6/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | Hi! I've created a patch to busybox' build system to allow building it in separate tree in a manner similar to kbuild from kernel version 2.6. That is, one runs command like 'make O=/build/some/where/for/specific/target/and/options' and everything is built in this exact directory, provided that it exists. I understand that applyingc such invasive changes during 'release candidates' stage of development is at best unwise. So, i'm currently asking for comments about this patch, starting from whether such thing is needed at all to whether it coded properly. 'make check' should work now, and one make creates Makefile in build directory, so one can run 'make' in build directory after that. One possible caveat is that if we build in some directory other than source one, the source directory should be 'distclean'ed first. egor git-svn-id: svn://busybox.net/trunk/busybox@9320 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Improve the setuid situation a bit, and make it more apparentandersen2004-08-261-0/+3
| | | | | | | | when people really ought to make busybox setuid root. -Erik git-svn-id: svn://busybox.net/trunk/busybox@9170 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix incorrect arguments being passed to mknodandersen2004-07-301-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@9049 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixup getty, login, etc so the utmp and wtmp are updated, allowingandersen2004-07-301-0/+1
| | | | | | | | the 'who' and 'last' applets among other things to work as expected. -Erik git-svn-id: svn://busybox.net/trunk/busybox@9047 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix up brain damage with the way major and minor are used toandersen2004-07-301-1/+1
| | | | | | | create a dev_t git-svn-id: svn://busybox.net/trunk/busybox@9045 69ca8d6d-28ef-0310-b511-8ec308f3f277
* BusyBox has no business hard coding the number of major and minor bits for aandersen2004-07-261-4/+5
| | | | | | | | | | | | dev_t. This is especially important now that the user space concept of a dev_t and the kernel concept of a dev_t are divergant. The only bit of user space allowed to know the number of major and minor bits is include/sys/sysmacros.h (i.e. part of libc). When used with a current C library and a 2.6.x kernel, this fix should allow BusyBox to support wide device major/minor numbers. -Erik git-svn-id: svn://busybox.net/trunk/busybox@9015 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch by Paul Whittaker, make busybox dc compatable with GNU dc. bug12004-07-241-8/+1
| | | | | | | the following example was broken, echo "1 1 +" | dc git-svn-id: svn://busybox.net/trunk/busybox@9012 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Avoid a naming conflict with include/bits/fcntl.handersen2004-07-201-4/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8988 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Include some documentation posted to the list by vodzandersen2004-07-201-0/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8972 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Woops, the previous commit was an accident, its supplied in the patch,bug12004-06-052-190/+32
| | | | | | | dont commit yet as we are in feature freeze git-svn-id: svn://busybox.net/trunk/busybox@8886 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Device table support for makedevs, the previous behaviour can beenbug12004-06-052-32/+190
| | | | | | | selected at configure time. git-svn-id: svn://busybox.net/trunk/busybox@8885 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Bugfixesbug12004-04-301-2/+2
| | | | | | | | | | | | | | 1) a non NULL terminated buffer that can mess up output, spotted by Ian Latter 2) in miscutils/strings.c: get rid of useless pointer dereference in third part of for(;;), spotted by Larry Doolittle 3) bug when reading from a pipe and being invoked as strings "cat Readme | strings" is broken "cat Readme | busybox strings" works spotted by Ian Latter and fixed by Tito. git-svn-id: svn://busybox.net/trunk/busybox@8791 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Larry Doolittle writes:andersen2004-04-144-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | This is a bulk spelling fix patch against busybox-1.00-pre10. If anyone gets a corrupted copy (and cares), let me know and I will make alternate arrangements. Erik - please apply. Authors - please check that I didn't corrupt any meaning. Package importers - see if any of these changes should be passed to the upstream authors. I glossed over lots of sloppy capitalizations, missing apostrophes, mixed American/British spellings, and German-style compound words. What is "pretect redefined for test" in cmdedit.c? Good luck on the 1.00 release! - Larry git-svn-id: svn://busybox.net/trunk/busybox@8759 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
* Tito noticed a printf that should have been a bb_error_msg.andersen2004-03-201-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8652 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix broken arg parsing (was not passing pointer to items so p, argc, and argvandersen2004-03-191-132/+117
| | | | | | | | were only modified locally). Fix error reporting to properly describe why ioctls fail. git-svn-id: svn://busybox.net/trunk/busybox@8644 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove trailing whitespace. Update copyright to include 2004.andersen2004-03-1513-32/+32
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8630 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Florian Schirmer. compile fix for debug buildsbug12004-02-221-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8540 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixup braces (patch from Thomas Geulig), run through indent and manuallybug12004-02-221-778/+744
| | | | | | | adjust. git-svn-id: svn://busybox.net/trunk/busybox@8537 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Avoid naming conflict with symbol in newer glibc headersandersen2004-02-141-4/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8479 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Bug fix from Tito.bug12004-02-041-3/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8395 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix compile error, the indenting really needs to be fixed herebug12003-12-231-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8160 69ca8d6d-28ef-0310-b511-8ec308f3f277
* New applet, rx, by Christopher Hooverbug12003-12-203-0/+351
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8148 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Tito writes:andersen2003-12-192-340/+464
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hi to all, here is a new patch for bb's devfsd. The news are: 1) Size reduction for the basic setup with no options compiled in from : text data bss dec hex filename 10591 392 543 11526 2d06 devfsd.o rw-r--r-- 1 root root 18536 Dec 18 21:52 devfsd.o to: text data bss dec hex filename 9303 392 543 10238 27fe devfsd.o rw-r--r-- 1 root root 16528 Dec 18 22:02 devfsd.o With this setup you should not expect much output from devfsd ( just at start or with -v) and if some error occurs it only exits 1. To have more output enable: " Increases logging (and size)" (+1568 b). 2) The option "Adds function names to program output" was removed from config menu and now to enable debug output you can use bb's standard option: "Build BusyBox with Debugging symbols". Be careful as with this option enabled a lot of data are outputted to /dev/log and/or to stderr. 3) A new option: "Enables the -fg and -np option" was added to config menu (+128 b). BTW: option "Adds support for MODLOAD keyword in devsfd.conf" adds 268 b. 4) The following keywords in devsfd.conf are supported: "CLEAR_CONFIG", "INCLUDE", "OPTIONAL_INCLUDE", "RESTORE", "PERMISSIONS", "EXECUTE", "COPY", "IGNORE", "MKOLDCOMPAT", "MKNEWCOMPAT","RMOLDCOMPAT", "RMNEWCOMPAT". But only if they are written UPPERCASE!!!!!!!! 5)Help text in usage.h was modified. 6)Something that I have forgotten.......... I've tested this for the last week on my box and it seems to work as expected. Thanks in advance and please apply. Ciao, Tito git-svn-id: svn://busybox.net/trunk/busybox@8125 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Get vfork_daemon_rexec working under uclinuxruss2003-12-151-6/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8087 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix compile when CONFIG_FEATURE_HDPARM_GET_IDENTITY is disabledandersen2003-12-121-6/+9
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8081 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Tito, size optimisation, cleanup noise when in debuggingbug12003-11-302-167/+174
| | | | | | | | mode, adds support for MODLOAD keyword in devfsd.conf, provides a cleaned up version of example/devfsd.conf git-svn-id: svn://busybox.net/trunk/busybox@8018 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Correct Matteo's email addressbug12003-11-281-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8010 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Steven Scholz to send the output from 'time'andersen2003-11-071-2/+2
| | | | | | | | | | | | | | to stderr, rather than stdout, so that things like ~ # time bunzip2 -c /tmp/test.bz2 > /dev/null real 0m 29.44s user 0m 29.30s sys 0m 0.12s operate as expected. git-svn-id: svn://busybox.net/trunk/busybox@7849 69ca8d6d-28ef-0310-b511-8ec308f3f277