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