summaryrefslogtreecommitdiff
path: root/miscutils/eject.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* suppress warnings about easch <applet>_main() havingDenis Vlasenko2007-02-031-0/+1
| | | | no preceding prototype
* preparatory patch for -Wwrite-strings #2Denis Vlasenko2007-01-291-1/+1
|
* eject: remove unmounting. It is buggy for many non-trivialDenis Vlasenko2006-10-071-12/+8
| | | | mounts, and can be done as shell script.
* eject: -T fixDenis Vlasenko2006-10-051-16/+20
|
* getopt_ulflags -> getopt32.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)Denis Vlasenko2006-10-021-7/+22
|
* These should have been part of 15767 too.Rob Landley2006-08-031-4/+1
|
* Patch from Yann Morin to put BLKGETSIZE64 in platform.h had rather a lot ofRob 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 configBernhard Reutner-Fischer2006-06-031-1/+2
| | | | and eventual platform specific includes in early.
* use more boiler plate GPL noticesMike Frysinger2006-04-161-1/+0
|
* Robert P. Day removed 8 gazillion occurrences of "extern" on functionRob Landley2006-03-061-1/+1
| | | | definitions. (That should only be on prototypes.)
* more security: don't start shell code from argv"Vladimir N. Oleynik"2006-02-281-1/+1
|
* Cosmetic cleanup from tito.Rob Landley2006-02-281-21/+11
|
* just whitespaceTim Riker2006-01-251-5/+5
|
* Major rewrite of mount, umount, losetup. Untangled lots of code, shrunkRob 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),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,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 RagusaMike Frysinger2005-05-111-0/+64