Force an over-the-wire transaction when resolving the root of an NFS mount
[dragonfly.git] / gnu / usr.bin / cvs / cvs / zlib.c.patch
1 $DragonFly: src/gnu/usr.bin/cvs/cvs/Attic/zlib.c.patch,v 1.1 2005/12/07 13:42:57 corecode Exp $
2 Index: src/zlib.c
3 ===================================================================
4 RCS file: /space/cvs/dragonfly/src/contrib/cvs-1.12/src/zlib.c,v
5 retrieving revision 1.1.1.1
6 diff -u -r1.1.1.1 zlib.c
7 --- src/zlib.c  7 Dec 2005 00:15:26 -0000       1.1.1.1
8 +++ src/zlib.c  7 Dec 2005 13:39:09 -0000
9 @@ -229,7 +229,7 @@
10            would fetch all the available bytes, and at least one byte.  */
11  
12         status = (*cb->buf->input) (cb->buf->closure, bd->text,
13 -                                   need, BUFFER_DATA_SIZE, &nread);
14 +                                   need > 0 ? 1 : 0, BUFFER_DATA_SIZE, &nread);
15  
16         if (status == -2)
17             /* Don't try to recover from memory allcoation errors.  */