]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
eject: use err() rather than abort()
authorKarel Zak <kzak@redhat.com>
Mon, 5 Nov 2018 09:34:10 +0000 (10:34 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 5 Nov 2018 09:35:24 +0000 (10:35 +0100)
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1645920
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/eject.c

index 86090c454d9d223e82283de0b73aeae6602f97ce..8196b60ddd4b0fe5c825082e82c1c49854d0590c 100644 (file)
@@ -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;