diff --git a/CHANGELOG b/CHANGELOG index 89be201..a1097e8 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -3,6 +3,7 @@ - remove mount.x and rpcgen dependencies. - dont use realloc in host exports list processing. - use sprintf() when constructing hosts mapent. +- fix mnts_remove_amdmount() uses wrong list. xx/xx/2018 autofs-5.1.5 - fix flag file permission. diff --git a/lib/mounts.c b/lib/mounts.c index fbe0052..09dbcab 100644 --- a/lib/mounts.c +++ b/lib/mounts.c @@ -1124,7 +1124,7 @@ void mnts_remove_amdmount(const char *mp) if (!(this && this->flags & MNTS_AMD_MOUNT)) goto done; this->flags &= ~MNTS_AMD_MOUNT; - list_del_init(&this->submount); + list_del_init(&this->amdmount); if (this->ext_mp) { free(this->ext_mp); this->ext_mp = NULL;