[systemd-commits] src/automount.c
Lennart Poettering
lennart at kemper.freedesktop.org
Sun Sep 5 16:14:16 PDT 2010
src/automount.c | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 7573916f6388624c800bbe22a2113ac59f231d7c
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Sep 6 01:04:59 2010 +0200
automount: make sure we don't crash if there's an automount unit without mount unit
diff --git a/src/automount.c b/src/automount.c
index 414816b..f7bf7f3 100644
--- a/src/automount.c
+++ b/src/automount.c
@@ -735,6 +735,9 @@ static bool automount_check_gc(Unit *u) {
assert(a);
+ if (!a->mount)
+ return false;
+
return UNIT_VTABLE(UNIT(a->mount))->check_gc(UNIT(a->mount));
}
More information about the systemd-commits
mailing list