From: Daan De Meyer Date: Wed, 26 Feb 2025 09:32:25 +0000 (+0100) Subject: sbsign: Fix wrong variable being passed to log_error_errno() X-Git-Tag: v258-rc1~1231^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba6a904442bd6b6e0fad9910fb5e69c44bddfa47;p=thirdparty%2Fsystemd.git sbsign: Fix wrong variable being passed to log_error_errno() --- diff --git a/src/sbsign/sbsign.c b/src/sbsign/sbsign.c index db4216c7e5e..6f4845135fb 100644 --- a/src/sbsign/sbsign.c +++ b/src/sbsign/sbsign.c @@ -252,7 +252,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)