Fix a bug which was introduced in cvs-1.12.13.
authorSimon Schubert <corecode@dragonflybsd.org>
Wed, 7 Dec 2005 13:42:57 +0000 (13:42 +0000)
committerSimon Schubert <corecode@dragonflybsd.org>
Wed, 7 Dec 2005 13:42:57 +0000 (13:42 +0000)
commit1b9ce5e9cf0f4787168ac953b1747036e2840a17
tree99386665f3b4c660745e90beb827b85c1f388cad
parentb68ad50c692d2181104c463e4325c4f7d6defe1e
Fix a bug which was introduced in cvs-1.12.13.

With running compression and ssh/rsh it could happen that the zlib
layer would want to read $expected_bytes, which would block because
$expected_bytes of course is a inflated quantity and can't be compared
to the deflated size, except for
$expected_bytes > 0 -> $expected_deflated_bytes > 0

Restore old behaviour which only read one byte a time.
gnu/usr.bin/cvs/cvs/Makefile
gnu/usr.bin/cvs/cvs/zlib.c.patch [new file with mode: 0644]