diff --git a/CHANGELOG b/CHANGELOG index 4c1f565..ad6db7e 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -85,6 +85,7 @@ xx/xx/2018 autofs-5.1.5 - fix incorrect systemctl command syntax in autofs(8). - fix direct mount unlink_mount_tree() path. - fix unlink mounts umount order. +- fix incorrect logical compare in unlink_mount_tree(). 19/12/2017 autofs-5.1.4 - fix spec file url. diff --git a/lib/mounts.c b/lib/mounts.c index 932cc8f..fb6755c 100644 --- a/lib/mounts.c +++ b/lib/mounts.c @@ -959,7 +959,7 @@ int unlink_mount_tree(struct autofs_point *ap, const char *mp) 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);