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

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