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
fixed cacheing of some values (using code from Samba)
[rsync/rsync.git]
/
io.c
diff --git
a/io.c
b/io.c
index
aafaeb3
..
9f6b228
100644
(file)
--- a/
io.c
+++ b/
io.c
@@
-270,8
+270,12
@@
static void readfd(int fd,char *buffer,int N)
int32 read_int(int f)
{
char b[4];
+ int32 ret;
+
readfd(f,b,4);
- return IVAL(b,0);
+ ret = IVAL(b,0);
+ if (ret == (int32)0xffffffff) return -1;
+ return ret;
}
int64 read_longint(int f)