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

96dc52
autofs-5.1.7 - don't pass root to do_mount_autofs_offset()
96dc52
96dc52
From: Ian Kent <raven@themaw.net>
96dc52
96dc52
The root parameter of do_mount_autofs_offset() is used only in a
96dc52
debug log message. It doesn't really add any value to debugging
96dc52
so remove it.
96dc52
96dc52
Signed-off-by: Ian Kent <raven@themaw.net>
96dc52
---
96dc52
 CHANGELOG    |    1 +
96dc52
 lib/mounts.c |    9 ++++-----
96dc52
 2 files changed, 5 insertions(+), 5 deletions(-)
96dc52
96dc52
diff --git a/CHANGELOG b/CHANGELOG
96dc52
index 0e9ca94f..2a07bd45 100644
96dc52
--- a/CHANGELOG
96dc52
+++ b/CHANGELOG
96dc52
@@ -26,6 +26,7 @@
96dc52
 - reduce umount EBUSY check delay.
96dc52
 - cleanup cache_delete() a little.
96dc52
 - rename path to m_offset in update_offset_entry().
96dc52
+- don't pass root to do_mount_autofs_offset().
96dc52
 
96dc52
 25/01/2021 autofs-5.1.7
96dc52
 - make bind mounts propagation slave by default.
96dc52
diff --git a/lib/mounts.c b/lib/mounts.c
96dc52
index 25ae2e1d..289500da 100644
96dc52
--- a/lib/mounts.c
96dc52
+++ b/lib/mounts.c
96dc52
@@ -2453,13 +2453,12 @@ out:
96dc52
 	return rv;
96dc52
 }
96dc52
 
96dc52
-static int do_mount_autofs_offset(struct autofs_point *ap,
96dc52
-				  struct mapent *oe, const char *root)
96dc52
+static int do_mount_autofs_offset(struct autofs_point *ap, struct mapent *oe)
96dc52
 {
96dc52
 	int mounted = 0;
96dc52
 	int ret;
96dc52
 
96dc52
-	debug(ap->logopt, "mount offset %s at %s", oe->key, root);
96dc52
+	debug(ap->logopt, "mount offset %s", oe->key);
96dc52
 
96dc52
 	ret = mount_autofs_offset(ap, oe);
96dc52
 	if (ret >= MOUNT_OFFSET_OK)
96dc52
@@ -2651,7 +2650,7 @@ static int do_umount_offset(struct autofs_point *ap,
96dc52
 		 */
96dc52
 		ret = rmdir_path_offset(ap, oe);
96dc52
 		if (ret == -1 && !stat(oe->key, &st)) {
96dc52
-			ret = do_mount_autofs_offset(ap, oe, root);
96dc52
+			ret = do_mount_autofs_offset(ap, oe);
96dc52
 			if (ret)
96dc52
 				left++;
96dc52
 			/* But we did origianlly create this */
96dc52
@@ -2697,7 +2696,7 @@ int mount_multi_triggers(struct autofs_point *ap, struct mapent *me,
96dc52
 			goto cont;
96dc52
 		}
96dc52
 
96dc52
-		mounted += do_mount_autofs_offset(ap, oe, root);
96dc52
+		mounted += do_mount_autofs_offset(ap, oe);
96dc52
 
96dc52
 		/*
96dc52
 		 * If re-constructing a multi-mount it's necessary to walk