Blame SOURCES/autofs-5.1.6-remove-logpri-fifo-on-autofs-mount-fail.patch

1b50e3
autofs-5.1.6 - remove logpri fifo on autofs mount fail
1b50e3
1b50e3
From: Ian Kent <raven@themaw.net>
1b50e3
1b50e3
Don't leave log priority command fifo file around on autofs mount failure.
1b50e3
1b50e3
Signed-off-by: Ian Kent <raven@themaw.net>
1b50e3
---
1b50e3
 CHANGELOG          |    1 +
1b50e3
 daemon/automount.c |    4 +++-
1b50e3
 2 files changed, 4 insertions(+), 1 deletion(-)
1b50e3
1b50e3
--- autofs-5.1.4.orig/CHANGELOG
1b50e3
+++ autofs-5.1.4/CHANGELOG
1b50e3
@@ -88,6 +88,7 @@ xx/xx/2018 autofs-5.1.5
1b50e3
 - fix incorrect logical compare in unlink_mount_tree().
1b50e3
 - use bit flag for force unlink mounts.
1b50e3
 - improve force unlink option description.
1b50e3
+- remove command fifo on autofs mount fail.
1b50e3
 
1b50e3
 19/12/2017 autofs-5.1.4
1b50e3
 - fix spec file url.
1b50e3
--- autofs-5.1.4.orig/daemon/automount.c
1b50e3
+++ autofs-5.1.4/daemon/automount.c
1b50e3
@@ -1161,8 +1161,10 @@ static int mount_autofs(struct autofs_po
1b50e3
 	else
1b50e3
 		status = mount_autofs_indirect(ap, root);
1b50e3
 
1b50e3
-	if (status < 0)
1b50e3
+	if (status < 0) {
1b50e3
+		destroy_logpri_fifo(ap);
1b50e3
 		return -1;
1b50e3
+	}
1b50e3
 
1b50e3
 	st_add_task(ap, ST_READY);
1b50e3