]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bootctl: show correct error code
authorLennart Poettering <lennart@poettering.net>
Fri, 19 Jul 2019 15:52:26 +0000 (17:52 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 23 Jul 2019 23:56:54 +0000 (08:56 +0900)
src/boot/bootctl.c

index aeb596f7d1748ec90eecb169c6887469b3197d45..d570526a4fd154e2fec96fd7c484236554de2466 100644 (file)
@@ -128,7 +128,7 @@ static int get_file_version(int fd, char **v) {
 
         r = stat_verify_regular(&st);
         if (r < 0)
-                return log_error_errno(errno, "EFI binary is not a regular file: %m");
+                return log_error_errno(r, "EFI binary is not a regular file: %m");
 
         if (st.st_size < 27) {
                 *v = NULL;