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

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