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