31 lines
1.1 KiB
Diff
31 lines
1.1 KiB
Diff
From 00eff1d423d2cb336d1e378cc8f348d2d19c2ed4 Mon Sep 17 00:00:00 2001
|
|
From: Lennart Poettering <lennart@poettering.net>
|
|
Date: Tue, 31 Aug 2021 10:47:29 +0200
|
|
Subject: [PATCH] homed: add missing SYNTHETIC_ERRNO()
|
|
|
|
(cherry picked from commit 9191142ddfb3ccd2007245c01197d3f42943815c)
|
|
|
|
Conflict:NA
|
|
Reference:https://github.com/systemd/systemd/commit/00eff1d423d2cb336d1e378cc8f348d2d19c2ed4
|
|
---
|
|
src/home/homework-cifs.c | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
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);
|
|
}
|
|
--
|
|
2.33.0
|
|
|