Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
5ad0e46
)
rsync_module: If host-based access fails, show the exact name/address
author
Martin Pool
<mbp@samba.org>
Thu, 24 Jan 2002 04:41:09 +0000
(
04:41
+0000)
committer
Martin Pool
<mbp@samba.org>
Thu, 24 Jan 2002 04:41:09 +0000
(
04:41
+0000)
used for the check in the error message. (Just in case...)
clientserver.c
patch
|
blob
|
blame
|
history
diff --git
a/clientserver.c
b/clientserver.c
index
7389376
..
4c44d26
100644
(file)
--- a/
clientserver.c
+++ b/
clientserver.c
@@
-168,9
+168,9
@@
static int rsync_module(int fd, int i)
if (!allow_access(addr, host, lp_hosts_allow(i), lp_hosts_deny(i))) {
rprintf(FERROR,"rsync denied on module %s from %s (%s)\n",
- name,
client_name(fd), client_addr(fd)
);
+ name,
host, addr
);
io_printf(fd,"@ERROR: access denied to %s from %s (%s)\n",
- name,
client_name(fd), client_addr(fd)
);
+ name,
host, addr
);
return -1;
}