Ian Kent 50a4d8
autofs-5.0.3 - check for mtab pointing to /proc/mounts fix
Ian Kent 50a4d8
Ian Kent 50a4d8
From: Ian Kent <raven@themaw.net>
Ian Kent 50a4d8
Ian Kent 50a4d8
Fix incorrect initialization in spawn_bind_mount() which
Ian Kent 50a4d8
caused bind mounts to not be added to mtab.
Ian Kent 50a4d8
---
Ian Kent 50a4d8
Ian Kent 50a4d8
 daemon/spawn.c |    2 +-
Ian Kent 50a4d8
 1 files changed, 1 insertions(+), 1 deletions(-)
Ian Kent 50a4d8
Ian Kent 50a4d8
Ian Kent 50a4d8
diff --git a/daemon/spawn.c b/daemon/spawn.c
Ian Kent 50a4d8
index 85cf9b8..17f92f4 100644
Ian Kent 50a4d8
--- a/daemon/spawn.c
Ian Kent 50a4d8
+++ b/daemon/spawn.c
Ian Kent 50a4d8
@@ -432,7 +432,7 @@ int spawn_bind_mount(unsigned logopt, ...)
Ian Kent 50a4d8
 	char arg_fake[] = "-f";
Ian Kent 50a4d8
 	unsigned int options;
Ian Kent 50a4d8
 	unsigned int retries = MTAB_LOCK_RETRIES;
Ian Kent 50a4d8
-	int update_mtab = 0, ret, printed = 0;
Ian Kent 50a4d8
+	int update_mtab = 1, ret, printed = 0;
Ian Kent 50a4d8
 	char buf[PATH_MAX];
Ian Kent 50a4d8
 
Ian Kent 50a4d8
 	/* If we use mount locking we can't validate the location */