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
Make sure the log file is always opened before root privileges (if any)
[rsync/rsync.git]
/
lib
/
compat.c
diff --git
a/lib/compat.c
b/lib/compat.c
index
e2380e1
..
ef57d90
100644
(file)
--- a/
lib/compat.c
+++ b/
lib/compat.c
@@
-147,7
+147,7
@@
}
#endif
}
#endif
-#if
n
def REPLACE_INET_ATON
+#ifdef REPLACE_INET_ATON
int inet_aton(const char *cp, struct in_addr *inp)
{
unsigned int a1, a2, a3, a4;
int inet_aton(const char *cp, struct in_addr *inp)
{
unsigned int a1, a2, a3, a4;
@@
-155,12
+155,12
@@
if (strcmp(cp, "255.255.255.255") == 0) {
inp->s_addr = (unsigned) -1;
if (strcmp(cp, "255.255.255.255") == 0) {
inp->s_addr = (unsigned) -1;
- return
1
;
+ return
0
;
}
if (sscanf(cp, "%u.%u.%u.%u", &a1, &a2, &a3, &a4) != 4 ||
a1 > 255 || a2 > 255 || a3 > 255 || a4 > 255) {
}
if (sscanf(cp, "%u.%u.%u.%u", &a1, &a2, &a3, &a4) != 4 ||
a1 > 255 || a2 > 255 || a3 > 255 || a4 > 255) {
- return
1
;
+ return
0
;
}
ret = (a1 << 24) | (a2 << 16) | (a3 << 8) | a4;
}
ret = (a1 << 24) | (a2 << 16) | (a3 << 8) | a4;