1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-25 06:03:40 +03:00

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

This reverts commit 41a451cc2901a5deb985aea4cc8de204a22e5612.

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:03:24 +02:00
parent 42aeb14a4a
commit 4fc13f521a

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;