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

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