homework-cifs: log correct errno

Follow-up for 606a1f203c
This commit is contained in:
Mike Yuan
2024-03-12 16:42:49 +08:00
parent 0870fc2404
commit 72a22e737b
+1 -1
View 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);
}