Blame SOURCES/autofs-5.1.8-fix-nonstrict-fail-handling-of-last-offset-mount.patch

f3080c
autofs-5.1.8 - fix nonstrict fail handling of last offset mount
f3080c
f3080c
From: Ian Kent <raven@themaw.net>
f3080c
f3080c
When mounting a list of multi-mount offsets the offset mount should
f3080c
succeed even if there's a mount failure for the non-strict case (the
f3080c
default).
f3080c
f3080c
But currently if the last offset mount fails the multi-mount fails
f3080c
regardless of whether the mount is non-strict or not.
f3080c
f3080c
Signed-off-by: Ian Kent <raven@themaw.net>
f3080c
---
f3080c
 CHANGELOG    |    1 +
f3080c
 lib/mounts.c |    2 +-
f3080c
 2 files changed, 2 insertions(+), 1 deletion(-)
f3080c
f3080c
--- autofs-5.1.4.orig/CHANGELOG
f3080c
+++ autofs-5.1.4/CHANGELOG
f3080c
@@ -84,6 +84,7 @@
f3080c
 - fix double quoting in auto.smb.
f3080c
 - fix double quoting of ampersand in auto.smb as well.
f3080c
 - fix root offset error handling.
f3080c
+- fix nonstrict fail handling of last offset mount.
f3080c
 
f3080c
 xx/xx/2018 autofs-5.1.5
f3080c
 - fix flag file permission.
f3080c
--- autofs-5.1.4.orig/lib/mounts.c
f3080c
+++ autofs-5.1.4/lib/mounts.c
f3080c
@@ -1940,7 +1940,7 @@ static int tree_mapent_mount_offsets_wor
f3080c
 			tree_mapent_mount_offsets(oe, !ctxt->strict);
f3080c
 	}
f3080c
 
f3080c
-	return ret;
f3080c
+	return (ctxt->strict ? ret : 1);
f3080c
 }
f3080c
 
f3080c
 int tree_mapent_mount_offsets(struct mapent *oe, int nonstrict)