summaryrefslogtreecommitdiffstats
path: root/source/lib/access.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-03-17 12:31:43 +0000
committerAndrew Tridgell <tridge@samba.org>1998-03-17 12:31:43 +0000
commita776058900a727591bd7b69debdaa25c0e31d693 (patch)
tree8d6879eed9d3b6059469dd7a3f70c67b516e0e99 /source/lib/access.c
parent4488d8932fa072bf8a3ae236ab666618051b5e83 (diff)
downloadsamba-a776058900a727591bd7b69debdaa25c0e31d693.tar.gz
samba-a776058900a727591bd7b69debdaa25c0e31d693.tar.xz
samba-a776058900a727591bd7b69debdaa25c0e31d693.zip
this isn't a big commit, it just looks like it :-)
I needed the client_name() and client_addr() functions in swat so I could tell who was connecting from where. The problem was that these functions didn't take a file descriptor parameter they just used the global "Client". So I needed to change all calls to pass a parameter ... lots of files.
Diffstat (limited to 'source/lib/access.c')
-rw-r--r--source/lib/access.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/lib/access.c b/source/lib/access.c
index c338517ed67..cc2bf8632b7 100644
--- a/source/lib/access.c
+++ b/source/lib/access.c
@@ -60,18 +60,19 @@ BOOL check_access(int snum)
if (!ret)
{
- if (allow_access(denyl,allowl,client_name(),client_addr()))
+ extern int Client;
+ if (allow_access(denyl,allowl,client_name(Client),client_addr(Client)))
{
if (snum >= 0)
DEBUG(2,("Allowed connection from %s (%s) to %s\n",
- client_name(),client_addr(),
+ client_name(Client),client_addr(Client),
lp_servicename(snum)));
ret = True;
}
else
if (snum >= 0)
DEBUG(0,("%s Denied connection from %s (%s) to %s\n",
- timestring(), client_name(),client_addr(),
+ timestring(), client_name(Client),client_addr(Client),
lp_servicename(snum)));
}