From: Vlad S. <ser...@us...> - 2005-08-01 19:22:03
|
Update of /cvsroot/naviserver/modules/nsclamav In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4871 Modified Files: nsclamav.c Log Message: removed usage of old compat functions Index: nsclamav.c =================================================================== RCS file: /cvsroot/naviserver/modules/nsclamav/nsclamav.c,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** nsclamav.c 12 Jun 2005 22:34:22 -0000 1.3 --- nsclamav.c 1 Aug 2005 19:21:45 -0000 1.4 *************** *** 59,63 **** path = Ns_ConfigGetPath(server,module,NULL); ! if(!(db = Ns_ConfigGet(path,"dbdir"))) db = (char*)cl_retdbdir(); if((rc = cl_loaddbdir(db,&ClamAvRoot,&virnum))) { Ns_Log(Error,"nsclamav: failed to load db: %s",cl_strerror(rc)); --- 59,63 ---- path = Ns_ConfigGetPath(server,module,NULL); ! if(!(db = Ns_ConfigGetValue(path,"dbdir"))) db = (char*)cl_retdbdir(); if((rc = cl_loaddbdir(db,&ClamAvRoot,&virnum))) { Ns_Log(Error,"nsclamav: failed to load db: %s",cl_strerror(rc)); *************** *** 76,80 **** if(!Ns_ConfigGetInt(path,"archivememlim",&ClamAvLimits.archivememlim)) ClamAvLimits.archivememlim = 0; Ns_Log(Notice,"nsclamav: loaded %d virues",virnum); ! return Ns_TclInitInterps(server, ClamAvInterpInit, NULL); } --- 76,81 ---- if(!Ns_ConfigGetInt(path,"archivememlim",&ClamAvLimits.archivememlim)) ClamAvLimits.archivememlim = 0; Ns_Log(Notice,"nsclamav: loaded %d virues",virnum); ! Ns_TclRegisterTrace(server, ClamAvInterpInit, 0, NS_TCL_TRACE_CREATE); ! return NS_OK; } |