From 6ed606cab4e9fc4c954576ffe1d0d781d3e21929 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 4 May 2000 06:28:38 +0000 Subject: if the stat cache is off then don't initialise it (This used to be commit cd5dcd9e659a7255f03eb496c0202986375e73a6) --- source3/smbd/statcache.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3/smbd') diff --git a/source3/smbd/statcache.c b/source3/smbd/statcache.c index e0ceddff1d..7b8701337f 100644 --- a/source3/smbd/statcache.c +++ b/source3/smbd/statcache.c @@ -240,6 +240,8 @@ BOOL stat_cache_lookup(connection_struct *conn, char *name, char *dirpath, BOOL reset_stat_cache( void ) { static BOOL initialised; + if (!lp_stat_cache()) return True; + if (!initialised) { initialised = True; return hash_table_init( &stat_cache, INIT_STAT_CACHE_SIZE, (compare_function)(strcmp)); -- cgit