From: Lennart Poettering Date: Tue, 31 Aug 2021 08:47:29 +0000 (+0200) Subject: homed: add missing SYNTHETIC_ERRNO() X-Git-Tag: v250-rc1~752^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9191142ddfb3ccd2007245c01197d3f42943815c;p=thirdparty%2Fsystemd.git homed: add missing SYNTHETIC_ERRNO() --- diff --git a/src/home/homework-cifs.c b/src/home/homework-cifs.c index a697f7e5ee6..04a4db8a94a 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); }