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

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