summaryrefslogtreecommitdiff
path: root/src/systemctl
diff options
context:
space:
mode:
authorIvan Shapovalov <intelfx100@gmail.com>2014-12-19 17:08:07 +0300
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-01-05 11:13:30 -0500
commit60d27f1916c90871c063819a6e7d586c7a663789 (patch)
tree3affd63ba875e2491f6870c99e0e8c3fe1d5a80c /src/systemctl
parent69c4e2771ec58d111191afe397a402e488e223ba (diff)
path-lookup, systemctl: export lookup_paths_init_from_scope() from shared/install.c and use it
Diffstat (limited to 'src/systemctl')
-rw-r--r--src/systemctl/systemctl.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
index 3d939f050b..679541493a 100644
--- a/src/systemctl/systemctl.c
+++ b/src/systemctl/systemctl.c
@@ -4515,11 +4515,7 @@ static int init_home_and_lookup_paths(char **user_home, char **user_runtime, Loo
return log_error_errno(ENOTDIR, "Cannot find units: $XDG_RUNTIME_DIR is not set.");
}
- r = lookup_paths_init(lp,
- arg_scope == UNIT_FILE_SYSTEM ? SYSTEMD_SYSTEM : SYSTEMD_USER,
- arg_scope == UNIT_FILE_USER,
- arg_root,
- NULL, NULL, NULL);
+ r = lookup_paths_init_from_scope(lp, arg_scope, arg_root);
if (r < 0)
return log_error_errno(r, "Failed to lookup unit lookup paths: %m");