chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9726b29
)
mount: refuse mount units that have not been loaded from any source
author
Lennart Poettering
<lennart@poettering.net>
Fri, 21 May 2010 01:32:21 +0000
(
03:32
+0200)
committer
Lennart Poettering
<lennart@poettering.net>
Fri, 21 May 2010 01:32:21 +0000
(
03:32
+0200)
src/mount.c
patch
|
blob
|
history
diff --git
a/src/mount.c
b/src/mount.c
index 921984c1c116a6446ed4bb6facad915b5ac4a87b..3b1608060ec084b044c165c3215d3322338301b3 100644
(file)
--- a/
src/mount.c
+++ b/
src/mount.c
@@
-267,9
+267,12
@@
static int mount_verify(Mount *m) {
char *e;
assert(m);
char *e;
assert(m);
- if (
UNIT(m)
->meta.load_state != UNIT_LOADED)
+ if (
m
->meta.load_state != UNIT_LOADED)
return 0;
return 0;
+ if (!m->from_etc_fstab && !m->from_fragment && !m->from_proc_self_mountinfo)
+ return -ENOENT;
+
if (!(e = unit_name_from_path(m->where, ".mount")))
return -ENOMEM;
if (!(e = unit_name_from_path(m->where, ".mount")))
return -ENOMEM;