aboutsummaryrefslogtreecommitdiff
path: root/miscutils
AgeCommit message (Collapse)Author
2005-08-10Major rewrite of mount, umount, losetup. Untangled lots of code, shrunkRob Landley
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. - *
2005-08-01commiting:Paul Fox
0000028 03-16-05 patch: new setsid applet
2005-08-01new config display applet, from bug 46. i've changed the namePaul Fox
of the applet from "config" to "bbconfig", and renamed the source filenames and symbols to match appropriately.
2005-07-31eat leading whitespace with preprocessorMike Frysinger
2005-07-27use toplevel ARFLAGS and update default ARFLAGS to be quietMike Frysinger
2005-07-18Fixup makedevs to handle regular files, and also fixEric Andersen
it to properly update file permissions as specified.
2005-07-18a bit more polishEric Andersen
2005-07-18a bit of polish on makedevsEric Andersen
2005-07-18the makedevs config option was pretty much totally brokenEric Andersen
2005-07-18Fixup device table based makedevs so it actually worksEric Andersen
2005-07-01Patch by jonlar in Bug 312 to split the U_W_TMP feature into sep UTMP and ↵Mike Frysinger
WTMP options
2005-06-23applets specified as _BB_SUID_ALWAYS in applets.h should also selectEric Andersen
CONFIG_FEATURE_SUID to ensure proper behavior when installed.
2005-06-09About time to just apply this and kill off the patchesEric Andersen
2005-06-07Tito posted a devfsd error message fix. It's highly deprecated and willRob Landley
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.
2005-06-07Clean up strings.c to use busybox's option processing. Bug 006, apparently.Rob Landley
2005-05-15Tito pointed out I'd broken -t (argv[optind] can't be before getulflags),Rob Landley
and replaced the use of system() (and resulting security implications).
2005-05-14Add automatic umount support to eject command. Patch from Tito,Rob Landley
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?
2005-05-11import eject by Peter Willis / Tito RagusaMike Frysinger
2005-04-16Patch from Bernhard Fischer to make a bunch of symbols staticEric Andersen
which were otherwise cluttering the global namespace.
2004-10-13Make certain clients of bb_make_directory default to honoringEric Andersen
the user's umask
2004-10-08egor duda writes:Eric Andersen
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
2004-08-26Improve the setuid situation a bit, and make it more apparentEric Andersen
when people really ought to make busybox setuid root. -Erik
2004-07-30Fix incorrect arguments being passed to mknodEric Andersen
2004-07-30Fixup getty, login, etc so the utmp and wtmp are updated, allowingEric Andersen
the 'who' and 'last' applets among other things to work as expected. -Erik
2004-07-30Fix up brain damage with the way major and minor are used toEric Andersen
create a dev_t
2004-07-26BusyBox has no business hard coding the number of major and minor bits for aEric Andersen
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
2004-07-24Patch by Paul Whittaker, make busybox dc compatable with GNU dc. Glenn L McGrath
the following example was broken, echo "1 1 +" | dc
2004-07-20Avoid a naming conflict with include/bits/fcntl.hEric Andersen
2004-07-20Include some documentation posted to the list by vodzEric Andersen
2004-06-05Woops, the previous commit was an accident, its supplied in the patch,Glenn L McGrath
dont commit yet as we are in feature freeze
2004-06-05Device table support for makedevs, the previous behaviour can beenGlenn L McGrath
selected at configure time.
2004-04-30BugfixesGlenn L McGrath
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.
2004-04-14Larry Doolittle writes:Eric Andersen
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
2004-04-05Tito, farmatito at tiscali dot it writes:Eric Andersen
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
2004-03-20Tito noticed a printf that should have been a bb_error_msg.Eric Andersen
2004-03-19Fix broken arg parsing (was not passing pointer to items so p, argc, and argvEric Andersen
were only modified locally). Fix error reporting to properly describe why ioctls fail.
2004-03-15Remove trailing whitespace. Update copyright to include 2004.Eric Andersen
2004-02-22Patch from Florian Schirmer. compile fix for debug buildsGlenn L McGrath
2004-02-22Fixup braces (patch from Thomas Geulig), run through indent and manuallyGlenn L McGrath
adjust.
2004-02-14Avoid naming conflict with symbol in newer glibc headersEric Andersen
2004-02-04Bug fix from Tito.Glenn L McGrath
2003-12-23Fix compile error, the indenting really needs to be fixed hereGlenn L McGrath
2003-12-20New applet, rx, by Christopher HooverGlenn L McGrath
2003-12-19Tito writes:Eric Andersen
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
2003-12-15Get vfork_daemon_rexec working under uclinuxRuss Dill
2003-12-12Fix compile when CONFIG_FEATURE_HDPARM_GET_IDENTITY is disabledEric Andersen
2003-11-30Patch from Tito, size optimisation, cleanup noise when in debuggingGlenn L McGrath
mode, adds support for MODLOAD keyword in devfsd.conf, provides a cleaned up version of example/devfsd.conf
2003-11-28Correct Matteo's email addressGlenn L McGrath
2003-11-07Patch from Steven Scholz to send the output from 'time'Eric Andersen
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.
2003-10-22the dc applet now needs libmEric Andersen
-Erik