core/automount: load() should fail when the unit file does not exist
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 19 Nov 2017 07:45:35 +0000 (16:45 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 20 Nov 2017 00:35:30 +0000 (09:35 +0900)
commit4a78b637808c5ba436dbbcaef54724be827298fd
tree81486060f658273a9bdb4abc817e2ddae50cf024
parent0e74bad141d035b7d45f5e46ea4f33217db3c9e8
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.
src/core/automount.c