summaryrefslogtreecommitdiff
path: root/miscutils/eject.c
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils/eject.c')
-rw-r--r--miscutils/eject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/eject.c b/miscutils/eject.c
index 75618be..adff9e0 100644
--- a/miscutils/eject.c
+++ b/miscutils/eject.c
@@ -103,7 +103,7 @@ int eject_main(int argc UNUSED_PARAM, char **argv)
eject /dev/cdrom
*/
- xmove_fd(xopen(device, O_RDONLY|O_NONBLOCK), dev_fd);
+ xmove_fd(xopen_nonblocking(device), dev_fd);
if (ENABLE_FEATURE_EJECT_SCSI && (flags & FLAG_SCSI))
eject_scsi(device);