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

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