Blame SOURCES/autofs-5.1.7-fix-arg-not-used-in-print.patch

beb904
autofs-5.1.7 - fix arg not used in error print
beb904
beb904
From: Ian Kent <raven@themaw.net>
beb904
beb904
Coverity: extra_argument: This argument was not used by the format
beb904
	  string: "key".
beb904
beb904
Signed-off-by: Ian Kent <raven@themaw.net>
beb904
---
beb904
 CHANGELOG    |    1 +
beb904
 lib/mounts.c |    4 +---
beb904
 2 files changed, 2 insertions(+), 3 deletions(-)
beb904
beb904
--- autofs-5.1.4.orig/CHANGELOG
beb904
+++ autofs-5.1.4/CHANGELOG
beb904
@@ -60,6 +60,7 @@
beb904
 - dont try umount after stat() ENOENT fail.
beb904
 - remove redundant assignment in master_add_amd_mount_section_mounts().
beb904
 - fix dead code in mnts_add_mount().
beb904
+- fix arg not used in error print.
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
@@ -1519,9 +1519,7 @@ int tree_mapent_add_node(struct mapent_c
beb904
 	}
beb904
 
beb904
 	if (MAPENT_ROOT(base) != MAPENT_NODE(base)) {
beb904
-		error(logopt,
beb904
-		     "failed to find multi-mount root of offset tree",
beb904
-		     key);
beb904
+		error(logopt, "key %s is not multi-mount root", root);
beb904
 		return 0;
beb904
 	}
beb904
 	tree = MAPENT_ROOT(base);