Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix a typo that Andrea Gelmini pointed out.
[rsync/rsync.git]
/
clientname.c
diff --git
a/clientname.c
b/clientname.c
index
9efecbc
..
e5684f8
100644
(file)
--- a/
clientname.c
+++ b/
clientname.c
@@
-3,7
+3,7
@@
*
* Copyright (C) 1992-2001 Andrew Tridgell <tridge@samba.org>
* Copyright (C) 2001, 2002 Martin Pool <mbp@samba.org>
*
* Copyright (C) 1992-2001 Andrew Tridgell <tridge@samba.org>
* Copyright (C) 2001, 2002 Martin Pool <mbp@samba.org>
- * Copyright (C) 2002-200
7
Wayne Davison
+ * Copyright (C) 2002-200
9
Wayne Davison
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@
-108,6
+108,9
@@
char *client_name(int fd)
struct addrinfo hint, *answer;
int err;
struct addrinfo hint, *answer;
int err;
+ if (strcmp(addr, "0.0.0.0") == 0)
+ return name_buf;
+
memset(&hint, 0, sizeof hint);
#ifdef AI_NUMERICHOST
memset(&hint, 0, sizeof hint);
#ifdef AI_NUMERICHOST
@@
-266,7
+269,7
@@
int compare_addrinfo_sockaddr(const struct addrinfo *ai,
if (ai->ai_addrlen < sizeof (struct sockaddr_in6)) {
rprintf(FLOG, "%s: too short sockaddr_in6; length=%d\n",
if (ai->ai_addrlen < sizeof (struct sockaddr_in6)) {
rprintf(FLOG, "%s: too short sockaddr_in6; length=%d\n",
- fn, ai->ai_addrlen);
+ fn,
(int)
ai->ai_addrlen);
return 1;
}
return 1;
}