]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
ctrlaltdel: display error message indicated by errno
authorSami Kerola <kerolasa@iki.fi>
Tue, 25 Feb 2020 21:30:19 +0000 (21:30 +0000)
committerSami Kerola <kerolasa@iki.fi>
Sun, 29 Mar 2020 19:19:11 +0000 (20:19 +0100)
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
sys-utils/ctrlaltdel.c

index 9ead946213579c80efe062b01690057b6ffbccdb..303d2dc95cf16bf726468c048e5987f6ad082961 100644 (file)
@@ -75,7 +75,7 @@ static int set_cad(const char *arg)
                return EXIT_FAILURE;
        }
        if (reboot(cmd) < 0) {
-               warnx("reboot");
+               warn("reboot");
                return EXIT_FAILURE;
        }
        return EXIT_SUCCESS;