From 72a22e737befbc35e1383c52e8385aa5e1e0a4f5 Mon Sep 17 00:00:00 2001 From: Mike Yuan Date: Tue, 12 Mar 2024 15:49:27 +0800 Subject: [PATCH] homework-cifs: log correct errno Follow-up for 606a1f203c8871871bc8c5833d66ccbef870b010 --- src/home/homework-cifs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/home/homework-cifs.c b/src/home/homework-cifs.c index bb95741eb67..eb87b379151 100644 --- a/src/home/homework-cifs.c +++ b/src/home/homework-cifs.c @@ -94,7 +94,7 @@ int home_setup_cifs( r = setenvf("PASSWD_FD", /* overwrite= */ true, "%d", passwd_fd); if (r < 0) { - log_error_errno(errno, "Failed to set $PASSWD_FD: %m"); + log_error_errno(r, "Failed to set $PASSWD_FD: %m"); _exit(EXIT_FAILURE); } -- 2.47.3