summaryrefslogtreecommitdiff
path: root/source3/lib/access.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2001-10-29 08:26:45 +0000
committerAndrew Bartlett <abartlet@samba.org>2001-10-29 08:26:45 +0000
commitf9879578c6ebfba73b1d9a51f9833cb41fff23f2 (patch)
treee719e0e95aaca466b0a0a7fc4a2bcc4eeb5467fe /source3/lib/access.c
parentfab88997b021ad66dd7f03220d95d1f7ee315140 (diff)
downloadsamba-f9879578c6ebfba73b1d9a51f9833cb41fff23f2.tar.gz
samba-f9879578c6ebfba73b1d9a51f9833cb41fff23f2.tar.bz2
samba-f9879578c6ebfba73b1d9a51f9833cb41fff23f2.zip
More spelling and grammer from Vance. <vance@digital-host.net>
Thanks! Andrew Bartlett (This used to be commit f019bed7663b4a20c1b5ab6b59fcadda17b89acd)
Diffstat (limited to 'source3/lib/access.c')
-rw-r--r--source3/lib/access.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/lib/access.c b/source3/lib/access.c
index ff929d3549..f59bf86057 100644
--- a/source3/lib/access.c
+++ b/source3/lib/access.c
@@ -52,7 +52,8 @@ static int string_match(char *tok,char *s, char *invalid_char)
* return True if the string is a (host) member of the
* netgroup. Return True if the token fully matches the
* string. If the token is a netnumber/netmask pair, return
- * True if the address is a member of the specified subnet. */
+ * True if the address is a member of the specified subnet.
+ */
if (tok[0] == '.') { /* domain: match last fields */
if ((str_len = strlen(s)) > (tok_len = strlen(tok))
@@ -212,12 +213,12 @@ BOOL allow_access(char **deny_list,char **allow_list,
if (!allow_list || *allow_list == 0)
return(!list_match(deny_list,(char *)client,client_match));
- /* if there are both type of list then allow all hosts on the
+ /* if there are both types of list then allow all hosts on the
allow list */
if (list_match(allow_list,(char *)client,client_match))
return (True);
- /* if there are both type of list and it's not on the allow then
+ /* if there are both types of list and it's not on the allow then
allow it if its not on the deny */
if (list_match(deny_list,(char *)client,client_match))
return (False);