]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: treat masked files as "unchanged"
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 31 Mar 2016 04:22:33 +0000 (00:22 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 31 Mar 2016 04:38:50 +0000 (00:38 -0400)
commit3a8db9fe81b3f7faae7f09c4ac7d2c863bf0177d
treea15ff7b336472ea59899e00c08e3bb01a04b2efa
parent21b95806b88bd645a7ded8274240f37fb65ea150
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.
src/core/load-fragment.c
src/core/unit.c