On Wed, Mar 25, 2009 at 2:14 PM, Gianluigi Tiesi <[email protected]> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Renato Botelho wrote:
>> Hello,
>>
>> I want to update clamav to 0.95 on FreeBSD ports collection, but,
>> before it I need to have all dependant ports working fine.
>>
>> I've contacted some maintainers / authors and got fixes, but, there
>> are 2 of them missing and I tried to fix it by myself.
>>
>> Could anyone take a look at those patches and let me know if I
>> missed something? They are building fine, but it doesn't mean
>> they are working fine.
>>
>
> - - limits are gone
> - - you should use cl_engine_set_num() to set maxfilesize and friends
> - - you need cl_init(CL_INIT_DEFAULT)
>
> Regards
>
>
> - --
> Gianluigi Tiesi <[email protected]>
> EDP Project Leader
> Netfarm S.r.l. - http://www.netfarm.it/
> Free Software: http://oss.netfarm.it/
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iEYEARECAAYFAknKZoAACgkQ3UE5cRfnO065xwCglp5XfdAaKsPUSN11B3Mfxdgq
> Vr4AoJf5gVCH0uRCK3JDhTvVU6rG196/
> =XZS6
> -----END PGP SIGNATURE-----
> _______________________________________________
> http://lurker.clamav.net/list/clamav-devel.html
> Please submit your patches to our Bugzilla: http://bugs.clamav.net
>


And for the other one:

    cfg->maxfiles = 100;
    cl_engine_set_num(cfg->common->local->engine, CL_ENGINE_MAX_FILES,
&cfg->maxfiles);
    cfg->maxfilesize = 10 * 1048576;
    cl_engine_set_num(cfg->common->local->engine,
CL_ENGINE_MAX_FILE_SIZE, &cfg->maxfilesize);
    cfg->maxreclevel = 8;
    cl_engine_set_num(cfg->common->local->engine,
CL_ENGINE_MAX_RECURSION, &cfg->maxreclevel);

What do you think?

-- 
Renato Botelho
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net

Reply via email to