]> git.ipfire.org Git - thirdparty/systemd.git/commit
test-systemd-tmpfiles: respect $HOME in test for %h expansion 7419/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 4 Dec 2017 08:05:05 +0000 (09:05 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 6 Dec 2017 09:30:49 +0000 (10:30 +0100)
commit2f813b8aae1a6f1960d41d8750712d5d6c651e03
treebca4063355cead419d3711adba355407ae507eff
parentdf1172fe726422a46f36c992c5553698657a9bde
test-systemd-tmpfiles: respect $HOME in test for %h expansion

%h is a special specifier because we look at $HOME (unless running suid, but
let's say that this case does not apply to tmpfiles, since the code is
completely unready to be run suid). For all other specifiers we query the user
db and use those values directly. I'm not sure if this exception is good, but
let's just "document" status quo for now. If this is changes, it should be in
a separate PR.
src/test/test-systemd-tmpfiles.py