Blame SOURCES/autofs-5.0.7-fix-spawn_umount-return-check-in-mount_bind-lookup_init.patch

304803
autofs-5.0.7 - fix spawn_umount() return check in mount_bind.c:lookup_init()
304803
304803
From: Ian Kent <raven@themaw.net>
304803
304803
Check return of spawn_umount() and report it if it fails.
304803
---
304803
 modules/mount_bind.c |    3 ++-
304803
 1 file changed, 2 insertions(+), 1 deletion(-)
304803
304803
diff --git a/modules/mount_bind.c b/modules/mount_bind.c
304803
index 4975294..d6c6fe7 100644
304803
--- a/modules/mount_bind.c
304803
+++ b/modules/mount_bind.c
304803
@@ -57,7 +57,8 @@ int mount_init(void **context)
304803
 		bind_works = 1;
304803
 	}
304803
 
304803
-	spawn_umount(LOGOPT_NONE, "-n", t2_dir, NULL);
304803
+	if (spawn_umount(LOGOPT_NONE, "-n", t2_dir, NULL) != 0)
304803
+		debug(LOGOPT_ANY, MODPREFIX "umount failed for %s", t2_dir);
304803
 
304803
 out:
304803
 	rmdir(t1_dir);