diff options
Diffstat (limited to 'src/systemctl/systemctl-preset-all.c')
-rw-r--r-- | src/systemctl/systemctl-preset-all.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/systemctl/systemctl-preset-all.c b/src/systemctl/systemctl-preset-all.c index 5d73172988..b55f8e35ca 100644 --- a/src/systemctl/systemctl-preset-all.c +++ b/src/systemctl/systemctl-preset-all.c @@ -8,13 +8,14 @@ #include "systemctl.h" int verb_preset_all(int argc, char *argv[], void *userdata) { - InstallChange *changes = NULL; - size_t n_changes = 0; int r; - CLEANUP_ARRAY(changes, n_changes, install_changes_free); - if (install_client_side()) { + InstallChange *changes = NULL; + size_t n_changes = 0; + + CLEANUP_ARRAY(changes, n_changes, install_changes_free); + r = unit_file_preset_all(arg_runtime_scope, unit_file_flags_from_args(), arg_root, arg_preset_mode, &changes, &n_changes); install_changes_dump(r, "preset", changes, n_changes, arg_quiet); |