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

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