From a6f99be44796086c73c03a91464407a2ff74dadd Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 5 Nov 2018 10:34:10 +0100 Subject: eject: use err() rather than abort() Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1645920 Signed-off-by: Karel Zak --- sys-utils/eject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys-utils/eject.c') 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; -- cgit v1.2.3-55-g7522