You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
955 B
26 lines
955 B
6 months ago
|
From f0ab67eb46103c68a1fc708b45e2fa6b93780efb Mon Sep 17 00:00:00 2001
|
||
|
From: Lennart Poettering <lennart@poettering.net>
|
||
|
Date: Mon, 19 Dec 2022 22:25:28 +0100
|
||
|
Subject: [PATCH] bootctl: fix errno logging
|
||
|
|
||
|
(cherry picked from commit e425849e995e448f529d3c106bf1e3de2ca23a35)
|
||
|
|
||
|
Related: RHEL-16354
|
||
|
---
|
||
|
src/boot/bootctl.c | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/src/boot/bootctl.c b/src/boot/bootctl.c
|
||
|
index 7da48b4ca4..67fcbcc8cd 100644
|
||
|
--- a/src/boot/bootctl.c
|
||
|
+++ b/src/boot/bootctl.c
|
||
|
@@ -2028,7 +2028,7 @@ static int install_random_seed(const char *esp) {
|
||
|
return log_error_errno(SYNTHETIC_ERRNO(EIO), "Short write while writing random seed file.");
|
||
|
|
||
|
if (rename(tmp, path) < 0)
|
||
|
- return log_error_errno(r, "Failed to move random seed file into place: %m");
|
||
|
+ return log_error_errno(errno, "Failed to move random seed file into place: %m");
|
||
|
|
||
|
tmp = mfree(tmp);
|
||
|
|