diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-08-26 04:03:24 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-08-26 04:09:22 +0200 |
commit | 4fc13f521ab44eb55c599b07c18860c1aeca35a7 (patch) | |
tree | f5391695e02ae619c85b931738b178e806438a9d /src/shared | |
parent | 42aeb14a4a0fa7d43da96a8ed0fb0e180a2dd5c8 (diff) |
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.
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/install.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/install.c b/src/shared/install.c index a07d1dd315..4b09a69456 100644 --- a/src/shared/install.c +++ b/src/shared/install.c @@ -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; |