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

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