chiark / gitweb /
Revert "systemctl: fix broken list-unit-files with --root"
[elogind.git] / src / shared / install.c
index a07d1dd31577a73172be3eeec7675c18ab374332..4b09a69456fd71fab4bf9c7bb113607d3747c9e2 100644 (file)
@@ -2099,7 +2099,7 @@ int unit_file_get_list(
                         if (!f)
                                 return -ENOMEM;
 
-                        f->path = path_make_absolute(de->d_name, *i);
+                        f->path = path_make_absolute(de->d_name, units_dir);
                         if (!f->path)
                                 return -ENOMEM;