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

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