]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/unit.c
Do not report masked units as changed (#2921)
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 12 Apr 2016 09:10:57 +0000 (05:10 -0400)
committerMartin Pitt <martin.pitt@ubuntu.com>
Tue, 12 Apr 2016 09:10:57 +0000 (11:10 +0200)
commit6d10d308c6cd16528ef58fa4f5822aef936862d3
treebc5479db64809dcd20859959f076578443c6f4a1
parent35a6750d9e26b26b423fbe815bead7d750210d8d
Do not report masked units as changed (#2921)

* core/unit: extract checking of stat paths into helper function

The same code was repeated three times.

* core: treat masked files as "unchanged"

systemctl prints the "unit file changed on disk" warning
for a masked unit. I think it's better to print nothing in that
case.

When a masked unit is loaded, set mtime as 0. When checking
if a unit with mtime of 0 needs reload, check that the mask
is still in place.

* test-dnssec: fix build without gcrypt

Also reorder the test functions to follow the way they are called
from main().
src/core/load-fragment.c
src/core/unit.c
src/resolve/test-dnssec.c