Blame SOURCES/autofs-5.1.7-fix-mnts_remove_amdmount-uses-wrong-list.patch

96dc52
autofs-5.1.7 - fix mnts_remove_amdmount() uses wrong list
96dc52
96dc52
From: Ian Kent <raven@themaw.net>
96dc52
96dc52
Function mnts_remove_amdmount() uses the wrong list when removing an
96dc52
amd mount.
96dc52
96dc52
Signed-off-by: Ian Kent <raven@themaw.net>
96dc52
---
96dc52
 CHANGELOG    |    1 +
96dc52
 lib/mounts.c |    2 +-
96dc52
 2 files changed, 2 insertions(+), 1 deletion(-)
96dc52
96dc52
diff --git a/CHANGELOG b/CHANGELOG
96dc52
index d613e5ca..fe49740e 100644
96dc52
--- a/CHANGELOG
96dc52
+++ b/CHANGELOG
96dc52
@@ -3,6 +3,7 @@
96dc52
 - remove mount.x and rpcgen dependencies.
96dc52
 - dont use realloc in host exports list processing.
96dc52
 - use sprintf() when constructing hosts mapent.
96dc52
+- fix mnts_remove_amdmount() uses wrong list.
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 dbeb77b5..ccbd52e0 100644
96dc52
--- a/lib/mounts.c
96dc52
+++ b/lib/mounts.c
96dc52
@@ -1124,7 +1124,7 @@ void mnts_remove_amdmount(const char *mp)
96dc52
 	if (!(this && this->flags & MNTS_AMD_MOUNT))
96dc52
 		goto done;
96dc52
 	this->flags &= ~MNTS_AMD_MOUNT;
96dc52
-	list_del_init(&this->submount);
96dc52
+	list_del_init(&this->amdmount);
96dc52
 	if (this->ext_mp) {
96dc52
 		free(this->ext_mp);
96dc52
 		this->ext_mp = NULL;