summaryrefslogtreecommitdiff
path: root/source/param
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-11-21 13:42:31 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:15:59 -0500
commitb32c8356f783e0919f29b452be9417d7ff59b5bc (patch)
tree8aa6ccc0cd8fc05705f4141a1d03784bfc1152c0 /source/param
parentc1083216c83f4236edb78484c6333ff1d1646c40 (diff)
downloadsamba-b32c8356f783e0919f29b452be9417d7ff59b5bc.tar.gz
r19820: Limit the stat cache to 1MB by default (Bug 4244). Thanks to Bjoern Jacke
<bj@sernet.de> Volker
Diffstat (limited to 'source/param')
-rw-r--r--source/param/loadparm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/param/loadparm.c b/source/param/loadparm.c
index 5e39544420d..81c642daf8b 100644
--- a/source/param/loadparm.c
+++ b/source/param/loadparm.c
@@ -1534,7 +1534,7 @@ static void init_globals(BOOL first_time_only)
Globals.bNTPipeSupport = True; /* Do NT pipes by default. */
Globals.bNTStatusSupport = True; /* Use NT status by default. */
Globals.bStatCache = True; /* use stat cache by default */
- Globals.iMaxStatCacheSize = 0; /* unlimited size in kb by default. */
+ Globals.iMaxStatCacheSize = 1024; /* one Meg by default. */
Globals.restrict_anonymous = 0;
Globals.bClientLanManAuth = True; /* Do use the LanMan hash if it is available */
Globals.bClientPlaintextAuth = True; /* Do use a plaintext password if is requested by the server */