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 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)