]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/unit.c
pid1: do not use mtime==0 as sign of masking (#4388)
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 17 Oct 2016 05:15:03 +0000 (01:15 -0400)
committerMartin Pitt <martin.pitt@ubuntu.com>
Mon, 17 Oct 2016 05:15:03 +0000 (07:15 +0200)
commitba25d39e449347952522162c3fa110b04308e28c
tree4462c55b45f8b7e36248cf14e550c6e5f58b0a6e
parenta7753693547233e4a1d6e10b1a8f6515a477f227
pid1: do not use mtime==0 as sign of masking (#4388)

It is allowed for unit files to have an mtime==0, so instead of assuming that
any file that had mtime==0 was masked, use the load_state to filter masked
units.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1384150.
src/core/unit.c