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

80b5cf
autofs-5.1.6 - fix incorrect logical compare in unlink_mount_tree()
80b5cf
80b5cf
From: Ian Kent <raven@themaw.net>
80b5cf
80b5cf
Fix silly mistake using or instead of and in unlink_mount_tree().
80b5cf
80b5cf
Signed-off-by: Ian Kent <raven@themaw.net>
80b5cf
---
80b5cf
 CHANGELOG    |    1 +
80b5cf
 lib/mounts.c |    2 +-
80b5cf
 2 files changed, 2 insertions(+), 1 deletion(-)
80b5cf
80b5cf
--- autofs-5.0.7.orig/CHANGELOG
80b5cf
+++ autofs-5.0.7/CHANGELOG
80b5cf
@@ -357,6 +357,7 @@
80b5cf
 - fix autofs mount options construction.
80b5cf
 - fix direct mount unlink_mount_tree() path.
80b5cf
 - fix unlink mounts umount order.
80b5cf
+- fix incorrect logical compare in unlink_mount_tree().
80b5cf
 
80b5cf
 25/07/2012 autofs-5.0.7
80b5cf
 =======================
80b5cf
--- autofs-5.0.7.orig/lib/mounts.c
80b5cf
+++ autofs-5.0.7/lib/mounts.c
80b5cf
@@ -960,7 +960,7 @@ int unlink_mount_tree(struct autofs_poin
80b5cf
 		return 0;
80b5cf
 
80b5cf
 	for (mnt = mnts; mnt; mnt = mnt->next) {
80b5cf
-		if (mnt->flags | MNTS_AUTOFS)
80b5cf
+		if (mnt->flags & MNTS_AUTOFS)
80b5cf
 			rv = umount2(mnt->mp, MNT_DETACH);
80b5cf
 		else
80b5cf
 			rv = spawn_umount(ap->logopt, "-l", mnt->mp, NULL);