Blame SOURCES/autofs-5.1.6-fix-incorrect-logical-compare-in-unlink_mount_tree.patch

213b36
autofs-5.1.6 - fix incorrect logical compare in unlink_mount_tree()
213b36
213b36
From: Ian Kent <raven@themaw.net>
213b36
213b36
Fix silly mistake using or instead of and in unlink_mount_tree().
213b36
213b36
Signed-off-by: Ian Kent <raven@themaw.net>
213b36
---
213b36
 CHANGELOG    |    1 +
213b36
 lib/mounts.c |    2 +-
213b36
 2 files changed, 2 insertions(+), 1 deletion(-)
213b36
213b36
--- autofs-5.1.4.orig/CHANGELOG
213b36
+++ autofs-5.1.4/CHANGELOG
213b36
@@ -85,6 +85,7 @@ xx/xx/2018 autofs-5.1.5
213b36
 - fix incorrect systemctl command syntax in autofs(8).
213b36
 - fix direct mount unlink_mount_tree() path.
213b36
 - fix unlink mounts umount order.
213b36
+- fix incorrect logical compare in unlink_mount_tree().
213b36
 
213b36
 19/12/2017 autofs-5.1.4
213b36
 - fix spec file url.
213b36
--- autofs-5.1.4.orig/lib/mounts.c
213b36
+++ autofs-5.1.4/lib/mounts.c
213b36
@@ -959,7 +959,7 @@ int unlink_mount_tree(struct autofs_poin
213b36
 		return 0;
213b36
 
213b36
 	for (mnt = mnts; mnt; mnt = mnt->next) {
213b36
-		if (mnt->flags | MNTS_AUTOFS)
213b36
+		if (mnt->flags & MNTS_AUTOFS)
213b36
 			rv = umount2(mnt->mp, MNT_DETACH);
213b36
 		else
213b36
 			rv = spawn_umount(ap->logopt, "-l", mnt->mp, NULL);