]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
homework-cifs: log correct errno 31727/head
authorMike Yuan <me@yhndnzj.com>
Tue, 12 Mar 2024 07:49:27 +0000 (15:49 +0800)
committerMike Yuan <me@yhndnzj.com>
Tue, 12 Mar 2024 08:42:49 +0000 (16:42 +0800)
Follow-up for 606a1f203c8871871bc8c5833d66ccbef870b010

src/home/homework-cifs.c

index bb95741eb67d81a9e3eae7132f8d816402237167..eb87b379151c11c26b6b1572fb1c9ef6badb1b32 100644 (file)
@@ -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);
                         }