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