加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
backport-homed-add-missing-SYNTHETIC_ERRNO.patch 1.14 KB
一键复制 编辑 原始数据 按行查看 历史
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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化