1 Star 0 Fork 100

fly_fzc/systemd

forked from src-openEuler/systemd 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
backport-fix-log-message-not-match-glob-patterns-passed-to-disable-command.patch 1003 Bytes
一键复制 编辑 原始数据 按行查看 历史
From 819f3f0be986848d0b1ed82166e1244a6bd6d508 Mon Sep 17 00:00:00 2001
From: Yu Watanabe <[email protected]>
Date: Wed, 1 May 2024 15:14:37 +0900
Subject: [PATCH] systemctl: fix log message when glob patterns passed to
disable command and friends
Fixes #32599.
(cherry picked from commit 1cca93f7f33547629cc174ec3690a2d40971d021)
---
src/systemctl/systemctl-enable.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/systemctl/systemctl-enable.c b/src/systemctl/systemctl-enable.c
index 7d9b7c794a1..fc746b2b2be 100644
--- a/src/systemctl/systemctl-enable.c
+++ b/src/systemctl/systemctl-enable.c
@@ -71,7 +71,8 @@ int verb_enable(int argc, char *argv[], void *userdata) {
if (!argv[1])
return 0;
- r = mangle_names("to enable", strv_skip(argv, 1), &names);
+ const char *operation = strjoina("to ", verb);
+ r = mangle_names(operation, strv_skip(argv, 1), &names);
if (r < 0)
return r;
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/fly_fzc/systemd.git
[email protected]:fly_fzc/systemd.git
fly_fzc
systemd
systemd
master

搜索帮助