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

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