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

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