From dba33c4a2c53f1dca6edc1661b608f2c52ba6465 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 1 Mar 2019 18:38:32 +0100 Subject: [PATCH] bootspec: correct error code shown in log msg --- src/shared/bootspec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/bootspec.c b/src/shared/bootspec.c index d0841e8ee5f..4ebb221a428 100644 --- a/src/shared/bootspec.c +++ b/src/shared/bootspec.c @@ -482,7 +482,7 @@ static int boot_entries_find_unified( r = fd_verify_regular(fd); if (r < 0) { - log_warning_errno(errno, "File %s/%s is not regular, ignoring: %m", dir, de->d_name); + log_warning_errno(r, "File %s/%s is not regular, ignoring: %m", dir, de->d_name); continue; } -- 2.47.3