diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-03-17 12:31:43 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-03-17 12:31:43 +0000 |
commit | f996885676f041437430bfd5843a3000611b0923 (patch) | |
tree | fb9dd798b00edbf3cb7f7cdb3cdaae8c666a7358 /source3/smbd/connection.c | |
parent | 59d7006b05bb301e36f786b047b90ab9ef5be122 (diff) | |
download | samba-f996885676f041437430bfd5843a3000611b0923.tar.gz samba-f996885676f041437430bfd5843a3000611b0923.tar.xz samba-f996885676f041437430bfd5843a3000611b0923.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.
(This used to be commit a776058900a727591bd7b69debdaa25c0e31d693)
Diffstat (limited to 'source3/smbd/connection.c')
-rw-r--r-- | source3/smbd/connection.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/smbd/connection.c b/source3/smbd/connection.c index 610afbc3e55..5cf8b800f2c 100644 --- a/source3/smbd/connection.c +++ b/source3/smbd/connection.c @@ -115,6 +115,7 @@ simple routines to do connection counting ****************************************************************************/ BOOL claim_connection(int cnum,char *name,int max_connections,BOOL Clear) { + extern int Client; struct connect_record crec; pstring fname; int fd=-1; @@ -200,7 +201,7 @@ BOOL claim_connection(int cnum,char *name,int max_connections,BOOL Clear) crec.start = time(NULL); StrnCpy(crec.machine,remote_machine,sizeof(crec.machine)-1); - StrnCpy(crec.addr,client_addr(),sizeof(crec.addr)-1); + StrnCpy(crec.addr,client_addr(Client),sizeof(crec.addr)-1); /* make our mark */ if (lseek(fd,foundi*sizeof(crec),SEEK_SET) != foundi*sizeof(crec) || |