Limit the stat cache to 1MB by default (Bug 4244). Thanks to Bjoern Jacke
authorvlendec <vlendec@0c0555d6-39d7-0310-84fc-f1cc0bd64818>
Tue, 21 Nov 2006 13:42:31 +0000 (13:42 +0000)
committervlendec <vlendec@0c0555d6-39d7-0310-84fc-f1cc0bd64818>
Tue, 21 Nov 2006 13:42:31 +0000 (13:42 +0000)
<bj@sernet.de>

Volker

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@19820 0c0555d6-39d7-0310-84fc-f1cc0bd64818

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 */