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

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