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.
  • Loading branch information
yuwata committed May 1, 2024
1 parent 6be4dab commit 1cca93f
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 @@ -72,7 +72,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 1cca93f

Please sign in to comment.