aboutsummaryrefslogtreecommitdiff
path: root/miscutils/eject.c
Commit message (Collapse)AuthorAgeFilesLines
* usage.c: remove reference to busybox.hGravatar Denis Vlasenko2007-05-261-1/+1
| | | | | *: s/include "busybox.h"/include "libbb.h"
* suppress warnings about easch <applet>_main() havingGravatar Denis Vlasenko2007-02-031-0/+1
| | | | no preceding prototype
* preparatory patch for -Wwrite-strings #2Gravatar Denis Vlasenko2007-01-291-1/+1
|
* eject: remove unmounting. It is buggy for many non-trivialGravatar Denis Vlasenko2006-10-071-12/+8
| | | | mounts, and can be done as shell script.
* eject: -T fixGravatar Denis Vlasenko2006-10-051-16/+20
|
* getopt_ulflags -> getopt32.Gravatar Denis Vlasenko2006-10-031-2/+2
| | | | | | | | It is impossible to formulate sane ABI based on size of ulong because it can be 32-bit or 64-bit. Basically it means that you cannot portably use more that 32 option chars in one call anyway... Make it explicit.
* eject: -T (implements single button open/close)Gravatar Denis Vlasenko2006-10-021-7/+22
|
* These should have been part of 15767 too.Gravatar Rob Landley2006-08-031-4/+1
|
* Patch from Yann Morin to put BLKGETSIZE64 in platform.h had rather a lot ofGravatar Rob Landley2006-06-151-1/+0
| | | | | | fallout due to the #include <sys/mount.h>. Removed that #include from various applets and fixed up those that were unhappy when that #include was made because they'd block copied stuff out of it. (Sigh.)
* - move #include busybox.h to the very top so we pull in the configGravatar Bernhard Reutner-Fischer2006-06-031-1/+2
| | | | and eventual platform specific includes in early.
* use more boiler plate GPL noticesGravatar Mike Frysinger2006-04-161-1/+0
|
* Robert P. Day removed 8 gazillion occurrences of "extern" on functionGravatar Rob Landley2006-03-061-1/+1
| | | | definitions. (That should only be on prototypes.)
* more security: don't start shell code from argvGravatar "Vladimir N. Oleynik"2006-02-281-1/+1
|
* Cosmetic cleanup from tito.Gravatar Rob Landley2006-02-281-21/+11
|
* just whitespaceGravatar Tim Riker2006-01-251-5/+5
|
* Major rewrite of mount, umount, losetup. Untangled lots of code, shrunkGravatar Rob Landley2005-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. - *
* Tito pointed out I'd broken -t (argv[optind] can't be before getulflags),Gravatar Rob Landley2005-05-151-17/+13
| | | | and replaced the use of system() (and resulting security implications).
* Add automatic umount support to eject command. Patch from Tito,Gravatar Rob Landley2005-05-141-20/+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?
* import eject by Peter Willis / Tito RagusaGravatar Mike Frysinger2005-05-111-0/+64