autofs-5.1.8 - fix return status of mount_autofs() From: Ian Kent The function mount_autofs() collects the status of mounting an autofs file system but doesn't actually return it. Signed-off-by: Ian Kent --- CHANGELOG | 1 + daemon/automount.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) --- autofs-5.1.8.orig/CHANGELOG +++ autofs-5.1.8/CHANGELOG @@ -34,6 +34,7 @@ - fail on empty replicated host name. - improve handling of ENOENT in sss setautomntent(). - don't immediately call function when waiting. +- fix return status of mount_autofs(). 19/10/2021 autofs-5.1.8 - add xdr_exports(). --- autofs-5.1.8.orig/daemon/automount.c +++ autofs-5.1.8/daemon/automount.c @@ -1225,7 +1225,7 @@ static int autofs_init_ap(struct autofs_ static int mount_autofs(struct autofs_point *ap, const char *root) { - int status = 0; + int status; /* No need to create comms fds and command fifo if * unlinking mounts and exiting. @@ -1247,7 +1247,7 @@ static int mount_autofs(struct autofs_po st_add_task(ap, ST_READY); - return 0; + return status; } static int handle_packet(struct autofs_point *ap)