diff options
-rw-r--r-- | source3/smbd/statcache.c | 2 |
1 files changed, 2 insertions, 0 deletions
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)); |