summaryrefslogtreecommitdiff
path: root/src/systemctl/systemctl-start-special.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-03-29 21:10:03 +0200
committerGitHub <noreply@github.com>2022-03-29 21:10:03 +0200
commit53877d0385129a7b4b4a8ebb8a43982252bc7650 (patch)
treeab0d434311824b5cfb1c3e38e000a8be5c1e080a /src/systemctl/systemctl-start-special.c
parentf8e07c5cb652da80e962c4531517e96ea7076f72 (diff)
parentb380b6438361e39ad5076bfa58d2021621a957af (diff)
downloadsystemd-53877d0385129a7b4b4a8ebb8a43982252bc7650.tar.gz
Merge pull request #22649 from keszybz/symlink-enablement-yet-again-punish-me-harder
Fixups to the unit enablement logic
Diffstat (limited to 'src/systemctl/systemctl-start-special.c')
-rw-r--r--src/systemctl/systemctl-start-special.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/systemctl/systemctl-start-special.c b/src/systemctl/systemctl-start-special.c
index 7a6cef3c5e..cfd0078964 100644
--- a/src/systemctl/systemctl-start-special.c
+++ b/src/systemctl/systemctl-start-special.c
@@ -246,10 +246,10 @@ int verb_start_special(int argc, char *argv[], void *userdata) {
int verb_start_system_special(int argc, char *argv[], void *userdata) {
/* Like start_special above, but raises an error when running in user mode */
- if (arg_scope != UNIT_FILE_SYSTEM)
+ if (arg_scope != LOOKUP_SCOPE_SYSTEM)
return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
"Bad action for %s mode.",
- arg_scope == UNIT_FILE_GLOBAL ? "--global" : "--user");
+ arg_scope == LOOKUP_SCOPE_GLOBAL ? "--global" : "--user");
return verb_start_special(argc, argv, userdata);
}