28 lines
1003 B
Diff
28 lines
1003 B
Diff
From 819f3f0be986848d0b1ed82166e1244a6bd6d508 Mon Sep 17 00:00:00 2001
|
|
From: Yu Watanabe <watanabe.yu+github@gmail.com>
|
|
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;
|
|
|