summaryrefslogtreecommitdiffhomepage
path: root/src/conf.c
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-12-06 23:30:23 +0100
committerMichael Adam <obnox@samba.org>2009-12-07 00:22:46 +0100
commit8cb182e1b873fde40db6e4258ee23b05f956f397 (patch)
treee233d504ea8d6dbb06c5e218aa9ffa0b3d652f80 /src/conf.c
parent6266197e9257df1501b1962ad0a3e3ba757092f3 (diff)
Add access_list to the config struct instead of a global variable in acl.c.
Change insert_acl, check_acl and flush_access_list to take a corresponding argument. Michael
Diffstat (limited to 'src/conf.c')
-rw-r--r--src/conf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf.c b/src/conf.c
index e4c2c35..adc7def 100644
--- a/src/conf.c
+++ b/src/conf.c
@@ -618,7 +618,7 @@ static HANDLE_FUNC (handle_allow)
{
char *arg = get_string_arg (line, &match[2]);
- insert_acl (arg, ACL_ALLOW);
+ insert_acl (arg, ACL_ALLOW, &conf->access_list);
safefree (arg);
return 0;
}
@@ -627,7 +627,7 @@ static HANDLE_FUNC (handle_deny)
{
char *arg = get_string_arg (line, &match[2]);
- insert_acl (arg, ACL_DENY);
+ insert_acl (arg, ACL_DENY, &conf->access_list);
safefree (arg);
return 0;
}