From: Yu Watanabe Date: Sun, 19 Nov 2017 07:45:35 +0000 (+0900) Subject: core/automount: load() should fail when the unit file does not exist X-Git-Tag: v236~175^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4a78b637808c5ba436dbbcaef54724be827298fd;p=thirdparty%2Fsystemd.git core/automount: load() should fail when the unit file does not exist It is not necessary to label as loaded to automount unit when its unit file does not exist. So, let's make automount_load() to fail when the unit file does not exist. Partially fixes #7370. --- diff --git a/src/core/automount.c b/src/core/automount.c index e01b3ed9d34..cbcc8abb2b1 100644 --- a/src/core/automount.c +++ b/src/core/automount.c @@ -224,7 +224,7 @@ static int automount_load(Unit *u) { assert(u->load_state == UNIT_STUB); /* Load a .automount file */ - r = unit_load_fragment_and_dropin_optional(u); + r = unit_load_fragment_and_dropin(u); if (r < 0) return r;