autofs-5.1.9 - fix lookup search type in umount_subtree_mounts() From: Ian Kent The lookup type used in umount_subtree_mounts() should be LKP_DISTINCT because we're looking for existing cache entries. Signed-off-by: Ian Kent --- CHANGELOG | 1 + daemon/automount.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index da3aee59d..a80be08a5 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -22,6 +22,7 @@ - man/autofs.conf.5: fix manpage formatting. - fix memory leak in cache_release(). - fix submount shutdown race. +- fix lookup search type in umount_subtree_mounts(). 02/11/2023 autofs-5.1.9 - fix kernel mount status notification. diff --git a/daemon/automount.c b/daemon/automount.c index 474b29a16..22994defe 100644 --- a/daemon/automount.c +++ b/daemon/automount.c @@ -558,7 +558,7 @@ static int umount_subtree_mounts(struct autofs_point *ap, const char *path, unsi if (ind_key) ind_key++; - me = lookup_source_mapent(ap, ind_key, LKP_NORMAL); + me = lookup_source_mapent(ap, ind_key, LKP_DISTINCT); } if (me) {