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

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