]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
homed: add missing SYNTHETIC_ERRNO()
authorLennart Poettering <lennart@poettering.net>
Tue, 31 Aug 2021 08:47:29 +0000 (10:47 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 31 Aug 2021 08:51:50 +0000 (10:51 +0200)
src/home/homework-cifs.c

index a697f7e5ee65da15e89e22f85e6fe9f4bb611ba7..04a4db8a94ab0fb686de67a620cad7d974411fe1 100644 (file)
@@ -86,7 +86,8 @@ int home_prepare_cifs(
                 }
 
                 if (!mounted)
-                        return log_error_errno(ENOKEY, "Failed to mount home directory with supplied password.");
+                        return log_error_errno(SYNTHETIC_ERRNO(ENOKEY),
+                                               "Failed to mount home directory with supplied password.");
 
                 setup->root_fd = open("/run/systemd/user-home-mount", O_RDONLY|O_CLOEXEC|O_DIRECTORY|O_NOFOLLOW);
         }