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