Blame SOURCES/autofs-5.0.7-fix-map-entry-duplicate-offset-detection.patch

ab3a3d
autofs-5.0.7 - fix map entry duplicate offset detection
ab3a3d
ab3a3d
From: Ian Kent <raven@themaw.net>
ab3a3d
ab3a3d
Recent changes broke the detection of duplicate offsets in map entries.
ab3a3d
---
ab3a3d
ab3a3d
 CHANGELOG   |    1 +
ab3a3d
 lib/cache.c |    2 +-
ab3a3d
 2 files changed, 2 insertions(+), 1 deletions(-)
ab3a3d
ab3a3d
ab3a3d
diff --git a/CHANGELOG b/CHANGELOG
ab3a3d
index 8f6bb3a..bd0dd82 100644
ab3a3d
--- a/CHANGELOG
ab3a3d
+++ b/CHANGELOG
ab3a3d
@@ -15,6 +15,7 @@
ab3a3d
 - fix recursive mount deadlock.
ab3a3d
 - increase file map read buffer size.
ab3a3d
 - handle new location of systemd.
ab3a3d
+- fix map entry duplicate offset detection.
ab3a3d
 
ab3a3d
 25/07/2012 autofs-5.0.7
ab3a3d
 =======================
ab3a3d
diff --git a/lib/cache.c b/lib/cache.c
ab3a3d
index 9179ad5..1e05a99 100644
ab3a3d
--- a/lib/cache.c
ab3a3d
+++ b/lib/cache.c
ab3a3d
@@ -659,7 +659,7 @@ int cache_update_offset(struct mapent_cache *mc, const char *mkey, const char *k
ab3a3d
 
ab3a3d
 	me = cache_lookup_distinct(mc, key);
ab3a3d
 	if (me && me->age == age) {
ab3a3d
-		if (me->multi != owner)
ab3a3d
+		if (me->multi == owner)
ab3a3d
 			return CHE_DUPLICATE;
ab3a3d
 	}
ab3a3d