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)
124 unsigned flags; 124 unsigned flags;
125 const char *device; 125 const char *device;
126 126
127 opt_complementary = "?1:t--T:T--t"; 127 flags = getopt32(argv, "^" "tT"IF_FEATURE_EJECT_SCSI("s")
128 flags = getopt32(argv, "tT" IF_FEATURE_EJECT_SCSI("s")); 128 "\0" "?1:t--T:T--t"
129 );
129 device = argv[optind] ? argv[optind] : "/dev/cdrom"; 130 device = argv[optind] ? argv[optind] : "/dev/cdrom";
130 131
131 /* We used to do "umount <device>" here, but it was buggy 132 /* We used to do "umount <device>" here, but it was buggy