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

4218b4
autofs-5.1.8 - fix nonstrict fail handling of last offset mount
4218b4
4218b4
From: Ian Kent <raven@themaw.net>
4218b4
4218b4
When mounting a list of multi-mount offsets the offset mount should
4218b4
succeed even if there's a mount failure for the non-strict case (the
4218b4
default).
4218b4
4218b4
But currently if the last offset mount fails the multi-mount fails
4218b4
regardless of whether the mount is non-strict or not.
4218b4
4218b4
Signed-off-by: Ian Kent <raven@themaw.net>
4218b4
---
4218b4
 CHANGELOG    |    1 +
4218b4
 lib/mounts.c |    2 +-
4218b4
 2 files changed, 2 insertions(+), 1 deletion(-)
4218b4
4218b4
--- autofs-5.1.7.orig/CHANGELOG
4218b4
+++ autofs-5.1.7/CHANGELOG
4218b4
@@ -86,6 +86,7 @@
4218b4
 - improve descriptor open error reporting.
4218b4
 - fix root offset error handling.
4218b4
 - fix fix root offset error handling.
4218b4
+- fix nonstrict fail handling of last offset mount.
4218b4
 
4218b4
 25/01/2021 autofs-5.1.7
4218b4
 - make bind mounts propagation slave by default.
4218b4
--- autofs-5.1.7.orig/lib/mounts.c
4218b4
+++ autofs-5.1.7/lib/mounts.c
4218b4
@@ -1940,7 +1940,7 @@ static int tree_mapent_mount_offsets_wor
4218b4
 			tree_mapent_mount_offsets(oe, !ctxt->strict);
4218b4
 	}
4218b4
 
4218b4
-	return ret;
4218b4
+	return (ctxt->strict ? ret : 1);
4218b4
 }
4218b4
 
4218b4
 int tree_mapent_mount_offsets(struct mapent *oe, int nonstrict)