summaryrefslogtreecommitdiffstats
path: root/sys-utils/eject.c
diff options
context:
space:
mode:
authorKarel Zak2018-11-05 10:34:10 +0100
committerKarel Zak2018-11-05 10:35:24 +0100
commita6f99be44796086c73c03a91464407a2ff74dadd (patch)
tree9aac7ee1c5c0affd00f2d548e8e2344f8f797cbc /sys-utils/eject.c
parentagetty: when logname is erased, re-enable reloads (diff)
downloadkernel-qcow2-util-linux-a6f99be44796086c73c03a91464407a2ff74dadd.tar.gz
kernel-qcow2-util-linux-a6f99be44796086c73c03a91464407a2ff74dadd.tar.xz
kernel-qcow2-util-linux-a6f99be44796086c73c03a91464407a2ff74dadd.zip
eject: use err() rather than abort()
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1645920 Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/eject.c')
-rw-r--r--sys-utils/eject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/eject.c b/sys-utils/eject.c
index 86090c454..8196b60dd 100644
--- a/sys-utils/eject.c
+++ b/sys-utils/eject.c
@@ -438,7 +438,7 @@ static void toggle_tray(int fd)
warnx(_("CD-ROM drive is not ready"));
return;
default:
- abort();
+ err(EXIT_FAILURE, _("CD-ROM status command failed"));
}
#else
struct timeval time_start, time_stop;