]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
systemctl: use correct runtime scope
authorLennart Poettering <lennart@poettering.net>
Mon, 9 Dec 2024 10:38:26 +0000 (11:38 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 9 Dec 2024 14:16:37 +0000 (14:16 +0000)
src/systemctl/systemctl-is-enabled.c

index 01d924f8db66f40263d454606368c334e49c2fbe..2cf977597343cff72f5c2e0f665b7df7b27c308d 100644 (file)
@@ -20,7 +20,7 @@ static int show_installation_targets_client_side(const char *name) {
         flags = UNIT_FILE_DRY_RUN |
                 (arg_runtime ? UNIT_FILE_RUNTIME : 0);
 
-        r = unit_file_disable(RUNTIME_SCOPE_SYSTEM, flags, NULL, p, &changes, &n_changes);
+        r = unit_file_disable(arg_runtime_scope, flags, NULL, p, &changes, &n_changes);
         if (r < 0)
                 return log_error_errno(r, "Failed to get file links for %s: %m", name);