autofs-5.1.9 - fix master_notify_submount() return From: Ian Kent While the return code of master_notify_submount() is not currently checked the function return value should be consistent. Signed-off-by: Ian Kent --- CHANGELOG | 1 + daemon/master.c | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index 90de4a74f..0ec55ccad 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -107,6 +107,7 @@ - refactor mount_nfs.c:mount_mount(). - fix a couple of compile warnings. - fix map source deadlock for recursive submounts. +- fix master_notify_submount() return. 02/11/2023 autofs-5.1.9 - fix kernel mount status notification. diff --git a/daemon/master.c b/daemon/master.c index a13912e61..7e075e761 100644 --- a/daemon/master.c +++ b/daemon/master.c @@ -1284,6 +1284,7 @@ int master_notify_submount(struct autofs_point *ap, const char *path, enum state st_mutex_lock(); found = this->ap; if (!found || found->state == ST_SHUTDOWN) { + ret = 0; this = NULL; st_mutex_unlock(); goto done;