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