1 Star 0 Fork 92

Fengfei.XI/systemd

forked from src-openEuler/systemd 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
backport-execute-document-that-the-env-param-is-input-and-out.patch 996 Bytes
一键复制 编辑 原始数据 按行查看 历史
From 5c8437361d54bd6c04d613619f71c161df32024f Mon Sep 17 00:00:00 2001
From: Lennart Poettering <lennart@poettering.net>
Date: Tue, 1 Feb 2022 13:50:28 +0100
Subject: [PATCH] execute: document that the 'env' param is input *and* output
(cherry picked from commit 421bb42d1b366c00392ef5bbab6a67412295b6dc)
(cherry picked from commit c4357f31da66b1917d3612d02c28adb300d4b0c6)
Conflict:NA
Reference:https://github.com/systemd/systemd/commit/5c8437361d54bd6c04d613619f71c161df32024f
---
src/core/execute.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/core/execute.c b/src/core/execute.c
index 1129905b61..e24775c150 100644
--- a/src/core/execute.c
+++ b/src/core/execute.c
@@ -1152,7 +1152,7 @@ static int setup_pam(
uid_t uid,
gid_t gid,
const char *tty,
- char ***env,
+ char ***env, /* updated on success */
const int fds[], size_t n_fds) {
#if HAVE_PAM
--
2.33.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/fengfeixi/systemd.git
git@gitee.com:fengfeixi/systemd.git
fengfeixi
systemd
systemd
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891