1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-19 22:50:17 +03:00

sbsign: Fix wrong variable being passed to log_error_errno()

(cherry picked from commit ba6a904442bd6b6e0fad9910fb5e69c44bddfa47)
This commit is contained in:
Daan De Meyer 2025-02-26 10:32:25 +01:00
parent 6a4934ed59
commit 559d6b3165

View File

@ -249,7 +249,7 @@ static int verb_sign(int argc, char *argv[], void *userdata) {
_cleanup_(unlink_and_freep) char *tmp = NULL;
_cleanup_close_ int dstfd = open_tmpfile_linkable(arg_output, O_RDWR|O_CLOEXEC, &tmp);
if (dstfd < 0)
return log_error_errno(r, "Failed to open temporary file: %m");
return log_error_errno(dstfd, "Failed to open temporary file: %m");
r = fchmod_umask(dstfd, 0666);
if (r < 0)