Blame SOURCES/autofs-5.1.7-dont-pass-root-to-do_mount_autofs_offset.patch

beb904
autofs-5.1.7 - don't pass root to do_mount_autofs_offset()
beb904
beb904
From: Ian Kent <raven@themaw.net>
beb904
beb904
The root parameter of do_mount_autofs_offset() is used only in a
beb904
debug log message. It doesn't really add any value to debugging
beb904
so remove it.
beb904
beb904
Signed-off-by: Ian Kent <raven@themaw.net>
beb904
---
beb904
 CHANGELOG    |    1 +
beb904
 lib/mounts.c |    9 ++++-----
beb904
 2 files changed, 5 insertions(+), 5 deletions(-)
beb904
beb904
--- autofs-5.1.4.orig/CHANGELOG
beb904
+++ autofs-5.1.4/CHANGELOG
beb904
@@ -25,6 +25,7 @@
beb904
 - reduce umount EBUSY check delay.
beb904
 - cleanup cache_delete() a little.
beb904
 - rename path to m_offset in update_offset_entry().
beb904
+- don't pass root to do_mount_autofs_offset().
beb904
 
beb904
 xx/xx/2018 autofs-5.1.5
beb904
 - fix flag file permission.
beb904
--- autofs-5.1.4.orig/lib/mounts.c
beb904
+++ autofs-5.1.4/lib/mounts.c
beb904
@@ -2447,13 +2447,12 @@ out:
beb904
 	return rv;
beb904
 }
beb904
 
beb904
-static int do_mount_autofs_offset(struct autofs_point *ap,
beb904
-				  struct mapent *oe, const char *root)
beb904
+static int do_mount_autofs_offset(struct autofs_point *ap, struct mapent *oe)
beb904
 {
beb904
 	int mounted = 0;
beb904
 	int ret;
beb904
 
beb904
-	debug(ap->logopt, "mount offset %s at %s", oe->key, root);
beb904
+	debug(ap->logopt, "mount offset %s", oe->key);
beb904
 
beb904
 	ret = mount_autofs_offset(ap, oe);
beb904
 	if (ret >= MOUNT_OFFSET_OK)
beb904
@@ -2645,7 +2644,7 @@ static int do_umount_offset(struct autof
beb904
 		 */
beb904
 		ret = rmdir_path_offset(ap, oe);
beb904
 		if (ret == -1 && !stat(oe->key, &st)) {
beb904
-			ret = do_mount_autofs_offset(ap, oe, root);
beb904
+			ret = do_mount_autofs_offset(ap, oe);
beb904
 			if (ret)
beb904
 				left++;
beb904
 			/* But we did origianlly create this */
beb904
@@ -2691,7 +2690,7 @@ int mount_multi_triggers(struct autofs_p
beb904
 			goto cont;
beb904
 		}
beb904
 
beb904
-		mounted += do_mount_autofs_offset(ap, oe, root);
beb904
+		mounted += do_mount_autofs_offset(ap, oe);
beb904
 
beb904
 		/*
beb904
 		 * If re-constructing a multi-mount it's necessary to walk