src/server/safs/pathcheck.c

changeset 61
c858850f3d3a
parent 52
aced2245fb1c
child 69
4a10bc0ee80d
--- a/src/server/safs/pathcheck.c	Mon May 06 14:54:40 2013 +0200
+++ b/src/server/safs/pathcheck.c	Thu May 09 13:19:51 2013 +0200
@@ -33,6 +33,7 @@
 #include "../daemon/acl.h"
 #include "../daemon/acldata.h"
 #include "../daemon/session.h"
+#include "../daemon/vserver.h"
 
 #include "../ucx/string.h"
 #include "../config/acl.h"
@@ -71,11 +72,11 @@
 }
 
 int append_acl(pblock *pb, Session *sn, Request *rq) {
-    ServerConfiguration *config = session_get_config(sn);
+    const VirtualServer *vs = request_get_vs(rq);
     
     char *aclname = pblock_findval("acl", pb);
     if(aclname) {
-        ACLList *acl = acl_get(config->acls, aclname);
+        ACLList *acl = acl_get(vs->acls, aclname);
         if(!acl) {
             // TODO: error
             fprintf(stderr, "acl %s not found\n", aclname);

mercurial