diff --git a/CHANGELOG b/CHANGELOG index 89a8cd4..ae83de7 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -13,6 +13,7 @@ - refactor umount_multi_triggers(). - eliminate clean_stale_multi_triggers(). - simplify mount_subtree() mount check. +- fix mnts_get_expire_list() expire list construction. xx/xx/2018 autofs-5.1.5 - fix flag file permission. diff --git a/lib/mounts.c b/lib/mounts.c index 77feeab..505ed06 100644 --- a/lib/mounts.c +++ b/lib/mounts.c @@ -1364,6 +1364,9 @@ void mnts_get_expire_list(struct list_head *mnts, struct autofs_point *ap) list_for_each_entry(mnt, &ap->mounts, mount) { struct node *n; + if (!(mnt->flags & MNTS_MOUNTED)) + continue; + __mnts_get_mount(mnt); if (!tree) {