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

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