r19820: Limit the stat cache to 1MB by default (Bug 4244). Thanks to Bjoern Jacke
authorVolker Lendecke <vlendec@samba.org>
Tue, 21 Nov 2006 13:42:31 +0000 (13:42 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:15:59 +0000 (12:15 -0500)
<bj@sernet.de>

Volker

source/param/loadparm.c

index 5e39544420dad3ae5f8debc651d417a77a1dda29..81c642daf8bfd37411b3ddd67ce1d04991713223 100644 (file)
@@ -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 */