summaryrefslogtreecommitdiff
path: root/src/home/homework-cifs.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-08-31 10:47:29 +0200
committerLennart Poettering <lennart@poettering.net>2021-08-31 10:51:50 +0200
commit9191142ddfb3ccd2007245c01197d3f42943815c (patch)
tree69b7adef2f6c8e3d230d0e799f0d3756b908dbe0 /src/home/homework-cifs.c
parente070b9eac92993422db25c72ebdbdcc1cf424a0f (diff)
downloadsystemd-9191142ddfb3ccd2007245c01197d3f42943815c.tar.gz
homed: add missing SYNTHETIC_ERRNO()
Diffstat (limited to 'src/home/homework-cifs.c')
-rw-r--r--src/home/homework-cifs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/home/homework-cifs.c b/src/home/homework-cifs.c
index a697f7e5ee..04a4db8a94 100644
--- a/src/home/homework-cifs.c
+++ b/src/home/homework-cifs.c
@@ -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);
}