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

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