chiark / gitweb /
systemctl: fix broken list-unit-files with --root
authorLukas Nykryn <lnykryn@redhat.com>
Mon, 25 Aug 2014 13:29:50 +0000 (15:29 +0200)
committerLukas Nykryn <lnykryn@redhat.com>
Mon, 25 Aug 2014 13:51:55 +0000 (15:51 +0200)
commit41a451cc2901a5deb985aea4cc8de204a22e5612
tree900a458a144f77f943048da06e25c06519994483
parentd74f9e8e8a3dcddb043ef193e4bb14f58efa095f
systemctl: fix broken list-unit-files with --root

This patch modifies unit_file_get_list which will now return
hashmap of structures where f->path is *without* root_dir prefix.

This change should be ok, because current code either does not use
root_dir at all or calls basename() on the f->path.
src/shared/install.c