From: Vlad S. <ser...@us...> - 2005-08-01 19:16:49
|
Update of /cvsroot/naviserver/modules/nsaccess In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3401 Modified Files: nsaccess.c Log Message: removed usage of old compat functions Index: nsaccess.c =================================================================== RCS file: /cvsroot/naviserver/modules/nsaccess/nsaccess.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** nsaccess.c 29 Jun 2005 14:39:06 -0000 1.2 --- nsaccess.c 1 Aug 2005 19:16:36 -0000 1.3 *************** *** 76,85 **** path = Ns_ConfigGetPath(server,module,NULL); ! if((file = Ns_ConfigGet(path,"allow_file"))) hosts_allow_table = ns_strdup(file); ! if((file = Ns_ConfigGet(path,"deny_file"))) hosts_deny_table = ns_strdup(file); ! if (Ns_TclInitInterps(server, AddCmds, 0) != NS_OK) { ! return NS_ERROR; ! } return NS_OK; --- 76,83 ---- path = Ns_ConfigGetPath(server,module,NULL); ! if((file = Ns_ConfigGetValue(path,"allow_file"))) hosts_allow_table = ns_strdup(file); ! if((file = Ns_ConfigGetValue(path,"deny_file"))) hosts_deny_table = ns_strdup(file); ! Ns_TclRegisterTrace(server, AddCmds, 0, NS_TCL_TRACE_CREATE); return NS_OK; |