Blame SOURCES/autofs-5.1.6-use-bit-flag-for-force-unlink-mounts.patch

d702dc
autofs-5.1.6 - use bit flag for force unlink mounts
d702dc
d702dc
From: Ian Kent <raven@themaw.net>
d702dc
d702dc
Change global varaiable do_force_unlink to be a bit flag.
d702dc
d702dc
Signed-off-by: Ian Kent <raven@themaw.net>
d702dc
---
d702dc
 CHANGELOG           |    1 +
d702dc
 daemon/automount.c  |    2 +-
d702dc
 include/automount.h |    2 ++
d702dc
 3 files changed, 4 insertions(+), 1 deletion(-)
d702dc
d702dc
--- autofs-5.1.4.orig/CHANGELOG
d702dc
+++ autofs-5.1.4/CHANGELOG
d702dc
@@ -86,6 +86,7 @@ xx/xx/2018 autofs-5.1.5
d702dc
 - fix direct mount unlink_mount_tree() path.
d702dc
 - fix unlink mounts umount order.
d702dc
 - fix incorrect logical compare in unlink_mount_tree().
d702dc
+- use bit flag for force unlink mounts.
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
@@ -2337,7 +2337,7 @@ int main(int argc, char *argv[])
d702dc
 			break;
d702dc
 
d702dc
 		case 'F':
d702dc
-			do_force_unlink = 1;
d702dc
+			do_force_unlink = UNLINK_AND_CONT;
d702dc
 			break;
d702dc
 
d702dc
 		case '?':
d702dc
--- autofs-5.1.4.orig/include/automount.h
d702dc
+++ autofs-5.1.4/include/automount.h
d702dc
@@ -590,6 +590,8 @@ struct autofs_point {
d702dc
 	struct list_head submounts;	/* List of child submounts */
d702dc
 };
d702dc
 
d702dc
+#define UNLINK_AND_CONT		0x01
d702dc
+
d702dc
 /* Foreably unlink existing mounts at startup. */
d702dc
 extern int do_force_unlink;
d702dc