diff options
author | Ian Kent <raven@themaw.net> | 2021-04-09 12:37:20 +0800 |
---|---|---|
committer | Ian Kent <raven@themaw.net> | 2021-04-12 13:18:56 +0800 |
commit | b0fc91cf27f27a666840bcc3619ee8a0d62672ef (patch) | |
tree | 740c77b45732ee10d0f275c6f8880b9a20256540 | |
parent | 857cd1a249f9a9fbe19a541b377df1ef17b6b05f (diff) | |
download | autofs-b0fc91cf27f27a666840bcc3619ee8a0d62672ef.tar.gz |
autofs-5.1.7 - fix arg not used in error print
Coverity: extra_argument: This argument was not used by the format
string: "key".
Signed-off-by: Ian Kent <raven@themaw.net>
-rw-r--r-- | CHANGELOG | 1 | ||||
-rw-r--r-- | lib/mounts.c | 4 |
2 files changed, 2 insertions, 3 deletions
@@ -60,6 +60,7 @@ - dont try umount after stat() ENOENT fail. - remove redundant assignment in master_add_amd_mount_section_mounts(). - fix dead code in mnts_add_mount(). +- fix arg not used in error print. 25/01/2021 autofs-5.1.7 - make bind mounts propagation slave by default. diff --git a/lib/mounts.c b/lib/mounts.c index 018b9c80..883e3743 100644 --- a/lib/mounts.c +++ b/lib/mounts.c @@ -1519,9 +1519,7 @@ int tree_mapent_add_node(struct mapent_cache *mc, } if (MAPENT_ROOT(base) != MAPENT_NODE(base)) { - error(logopt, - "failed to find multi-mount root of offset tree", - key); + error(logopt, "key %s is not multi-mount root", root); return 0; } tree = MAPENT_ROOT(base); |