chiark / gitweb /
path-lookup: make inclusion of user private units optional
[elogind.git] / src / systemctl.c
index 3767e221354f7e8575f3a468d69eff4905b324fb..63eb3245d087acd2e0d650a75212917599ed55ee 100644 (file)
@@ -4139,7 +4139,7 @@ static int enable_unit(DBusConnection *bus, char **args, unsigned n) {
         dbus_error_init(&error);
 
         zero(paths);
-        if ((r = lookup_paths_init(&paths, arg_user ? MANAGER_USER : MANAGER_SYSTEM)) < 0) {
+        if ((r = lookup_paths_init(&paths, arg_user ? MANAGER_USER : MANAGER_SYSTEM, true)) < 0) {
                 log_error("Failed to determine lookup paths: %s", strerror(-r));
                 goto finish;
         }