]> git.ipfire.org Git - thirdparty/systemd.git/commit
shared/install: fix set-default with empty root (#4118)
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 10 Sep 2016 11:07:51 +0000 (12:07 +0100)
committerMartin Pitt <martin.pitt@ubuntu.com>
Sat, 10 Sep 2016 11:07:51 +0000 (13:07 +0200)
commitae9efab711e7478b4f035edd00824d518bcf0d3c
tree974dbcfa996a363200aac5192122d0da7b4f889c
parent4245eb507295522699215e35418c4c2716d6687c
shared/install: fix set-default with empty root (#4118)

https://bugzilla.redhat.com/show_bug.cgi?id=1374371

When root was empty or equal to "/", chroot_symlinks_same was called with
root==NULL, and strjoina returned "", so the code thought both paths are equal
even if they were not. Fix that by always providing a non-null first argument
to strjoina.
src/shared/install.c