summaryrefslogtreecommitdiff
path: root/src/boot/bootctl-random-seed.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2022-12-19 22:25:28 +0100
committerLennart Poettering <lennart@poettering.net>2023-01-04 15:15:58 +0100
commite425849e995e448f529d3c106bf1e3de2ca23a35 (patch)
treef70ed1d72593586139a49ddb62d4b8dfb1cad5e6 /src/boot/bootctl-random-seed.c
parentde712a85ffb7ea129536b4e14a1f5cb48f7116f7 (diff)
downloadsystemd-e425849e995e448f529d3c106bf1e3de2ca23a35.tar.gz
bootctl: fix errno logging
Diffstat (limited to 'src/boot/bootctl-random-seed.c')
-rw-r--r--src/boot/bootctl-random-seed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/boot/bootctl-random-seed.c b/src/boot/bootctl-random-seed.c
index 7d6e863728..f39a396a51 100644
--- a/src/boot/bootctl-random-seed.c
+++ b/src/boot/bootctl-random-seed.c
@@ -58,7 +58,7 @@ 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);