Revert "systemctl: fix broken list-unit-files with --root"

This reverts commit 41a451cc29.

This breaks checks for masking of units file, since we invoke
null_or_empty_path() on the resulting path.
This commit is contained in:
Lennart Poettering
2014-08-26 04:09:22 +02:00
parent 42aeb14a4a
commit 4fc13f521a
+1 -1
View 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;