aboutsummaryrefslogtreecommitdiff
path: root/util-linux/eject.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/eject.c')
-rw-r--r--util-linux/eject.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/util-linux/eject.c b/util-linux/eject.c
index 8095cbef0..6c30facd2 100644
--- a/util-linux/eject.c
+++ b/util-linux/eject.c
@@ -124,8 +124,9 @@ int eject_main(int argc UNUSED_PARAM, char **argv)
unsigned flags;
const char *device;
- opt_complementary = "?1:t--T:T--t";
- flags = getopt32(argv, "tT" IF_FEATURE_EJECT_SCSI("s"));
+ flags = getopt32(argv, "^" "tT"IF_FEATURE_EJECT_SCSI("s")
+ "\0" "?1:t--T:T--t"
+ );
device = argv[optind] ? argv[optind] : "/dev/cdrom";
/* We used to do "umount <device>" here, but it was buggy