]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
final change needed to get rsync working on a CRAY J90
authorAndrew Tridgell <tridge@samba.org>
Thu, 29 Oct 1998 05:48:11 +0000 (05:48 +0000)
committerAndrew Tridgell <tridge@samba.org>
Thu, 29 Oct 1998 05:48:11 +0000 (05:48 +0000)
io.c

diff --git a/io.c b/io.c
index aafaeb36a2fa78cc3673fcc4d89ce157a3280102..9f6b2280f44fa3717cc9d71b2a38e7c6032f0449 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)