From: Lennart Poettering Date: Fri, 1 Mar 2019 17:38:32 +0000 (+0100) Subject: bootspec: correct error code shown in log msg X-Git-Tag: v242-rc1~192^2~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dba33c4a2c53f1dca6edc1661b608f2c52ba6465;p=thirdparty%2Fsystemd.git bootspec: correct error code shown in log msg --- 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; }