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

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