Blame SOURCES/autofs-5.1.7-fix-flag-check-in-umount_multi.patch

9a499a
autofs-5.1.7 - fix flags check in umount_multi()
9a499a
9a499a
From: Ian Kent <raven@themaw.net>
9a499a
9a499a
Coverity: operator_confusion: "ap->flags | 1" is always 1/true
9a499a
	  regardless of the values of its operand.
9a499a
9a499a
Signed-off-by: Ian Kent <raven@themaw.net>
9a499a
---
9a499a
 CHANGELOG          |    1 +
9a499a
 daemon/automount.c |    2 +-
9a499a
 2 files changed, 2 insertions(+), 1 deletion(-)
9a499a
9a499a
--- autofs-5.1.4.orig/CHANGELOG
9a499a
+++ autofs-5.1.4/CHANGELOG
9a499a
@@ -56,6 +56,7 @@
9a499a
 - fix possible memory leak in mnts_add_amdmount().
9a499a
 - fix double unlock in parse_mount().
9a499a
 - add length check in umount_subtree_mounts().
9a499a
+- fix flags check in umount_multi().
9a499a
 
9a499a
 xx/xx/2018 autofs-5.1.5
9a499a
 - fix flag file permission.
9a499a
--- autofs-5.1.4.orig/daemon/automount.c
9a499a
+++ autofs-5.1.4/daemon/automount.c
9a499a
@@ -661,7 +661,7 @@ int umount_multi(struct autofs_point *ap
9a499a
 		/* Check if the autofs mount has browse mode enabled.
9a499a
 		 * If so re-create the directory entry.
9a499a
 		 */
9a499a
-		if (ap->flags | MOUNT_FLAG_GHOST) {
9a499a
+		if (ap->flags & MOUNT_FLAG_GHOST) {
9a499a
 			int ret;
9a499a
 
9a499a
 			/* If the browse directory create fails log an