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

49b67f
autofs-5.1.7 - fix mnts_remove_amdmount() uses wrong list
49b67f
49b67f
From: Ian Kent <raven@themaw.net>
49b67f
49b67f
Function mnts_remove_amdmount() uses the wrong list when removing an
49b67f
amd mount.
49b67f
49b67f
Signed-off-by: Ian Kent <raven@themaw.net>
49b67f
---
49b67f
 CHANGELOG    |    1 +
49b67f
 lib/mounts.c |    2 +-
49b67f
 2 files changed, 2 insertions(+), 1 deletion(-)
49b67f
49b67f
--- autofs-5.1.4.orig/CHANGELOG
49b67f
+++ autofs-5.1.4/CHANGELOG
49b67f
@@ -3,6 +3,7 @@
49b67f
 - remove mount.x and rpcgen dependencies.
49b67f
 - dont use realloc in host exports list processing.
49b67f
 - use sprintf() when constructing hosts mapent.
49b67f
+- fix mnts_remove_amdmount() uses wrong list.
49b67f
 
49b67f
 xx/xx/2018 autofs-5.1.5
49b67f
 - fix flag file permission.
49b67f
--- autofs-5.1.4.orig/lib/mounts.c
49b67f
+++ autofs-5.1.4/lib/mounts.c
49b67f
@@ -1124,7 +1124,7 @@ void mnts_remove_amdmount(const char *mp
49b67f
 	if (!(this && this->flags & MNTS_AMD_MOUNT))
49b67f
 		goto done;
49b67f
 	this->flags &= ~MNTS_AMD_MOUNT;
49b67f
-	list_del_init(&this->submount);
49b67f
+	list_del_init(&this->amdmount);
49b67f
 	if (this->ext_mp) {
49b67f
 		free(this->ext_mp);
49b67f
 		this->ext_mp = NULL;