projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e74bad
)
core/automount: load() should fail when the unit file does not exist
author
Yu Watanabe
<watanabe.yu+github@gmail.com>
Sun, 19 Nov 2017 07:45:35 +0000
(16:45 +0900)
committer
Yu Watanabe
<watanabe.yu+github@gmail.com>
Mon, 20 Nov 2017 00:35:30 +0000
(09:35 +0900)
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
patch
|
blob
|
history
diff --git
a/src/core/automount.c
b/src/core/automount.c
index
e01b3ed
..
cbcc8ab
100644
(file)
--- 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;