summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2017-11-19 16:45:35 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2017-11-20 09:35:30 +0900
commit4a78b637808c5ba436dbbcaef54724be827298fd (patch)
tree81486060f658273a9bdb4abc817e2ddae50cf024 /src
parent0e74bad141d035b7d45f5e46ea4f33217db3c9e8 (diff)
downloadsystemd-4a78b637808c5ba436dbbcaef54724be827298fd.tar.gz
systemd-4a78b637808c5ba436dbbcaef54724be827298fd.tar.bz2
systemd-4a78b637808c5ba436dbbcaef54724be827298fd.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/core/automount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/automount.c b/src/core/automount.c
index e01b3ed9d3..cbcc8abb2b 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;