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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user