Blame SOURCES/autofs-5.1.6-fix-direct-mount-unlink_mount_tree-path.patch

d702dc
autofs-5.1.6 - fix direct mount unlink_mount_tree() path
d702dc
d702dc
From: Ian Kent <raven@themaw.net>
d702dc
d702dc
Oops!
d702dc
d702dc
The path used if unlink_mount_tree() is called for direct mount entries
d702dc
is not correct, fix it.
d702dc
d702dc
Note: the mount table handling has changed and using the --force option
d702dc
with automount when direct mount maps are large will result in somewhat
d702dc
larger overhead.
d702dc
d702dc
Signed-off-by: Ian Kent <raven@themaw.net>
d702dc
---
d702dc
 CHANGELOG       |    1 +
d702dc
 daemon/direct.c |    2 +-
d702dc
 2 files changed, 2 insertions(+), 1 deletion(-)
d702dc
d702dc
--- autofs-5.1.4.orig/CHANGELOG
d702dc
+++ autofs-5.1.4/CHANGELOG
d702dc
@@ -83,6 +83,7 @@ xx/xx/2018 autofs-5.1.5
d702dc
 - fix autofs mount options construction.
d702dc
 - mount_nfs.c fix local rdma share not mounting.
d702dc
 - fix incorrect systemctl command syntax in autofs(8).
d702dc
+- fix direct mount unlink_mount_tree() path.
d702dc
 
d702dc
 19/12/2017 autofs-5.1.4
d702dc
 - fix spec file url.
d702dc
--- autofs-5.1.4.orig/daemon/direct.c
d702dc
+++ autofs-5.1.4/daemon/direct.c
d702dc
@@ -311,7 +311,7 @@ int do_mount_autofs_direct(struct autofs
d702dc
 			return 0;
d702dc
 		}
d702dc
 
d702dc
-		ret = unlink_mount_tree(ap, ap->path);
d702dc
+		ret = unlink_mount_tree(ap, me->key);
d702dc
 		if (!ret) {
d702dc
 			error(ap->logopt,
d702dc
 			     "already mounted as other than autofs "