Skip to content

Commit

Permalink
systemctl: fix log message when glob patterns passed to disable comma…
Browse files Browse the repository at this point in the history
…nd and friends

Fixes #32599.

(cherry picked from commit 1cca93f)
  • Loading branch information
yuwata authored and keszybz committed May 8, 2024
1 parent 844bb02 commit 819f3f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/systemctl/systemctl-enable.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 819f3f0

Please sign in to comment.