From 4e602207e1e599452102d6a06036fb6b49cf0a45 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Tue, 25 Apr 2006 08:24:50 +0000 Subject: r15228: Fix -n winbind option which has become meaningless with the persistent cache. Guenther (This used to be commit e85558f4a457609f3661446dad8134e80f10bbe6) --- source3/nsswitch/winbindd_cache.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source3/nsswitch') diff --git a/source3/nsswitch/winbindd_cache.c b/source3/nsswitch/winbindd_cache.c index 76e49ee96a..bf76c7f251 100644 --- a/source3/nsswitch/winbindd_cache.c +++ b/source3/nsswitch/winbindd_cache.c @@ -524,6 +524,12 @@ static struct cache_entry *wcache_fetch(struct winbind_cache *cache, char *kstr; struct cache_entry *centry; + extern BOOL opt_nocache; + + if (opt_nocache) { + return NULL; + } + refresh_sequence_number(domain, False); va_start(ap, format); -- cgit