1
0
Fork 0

Adding upstream version 1.17~pre1.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-21 11:23:10 +01:00
parent 15503a1dcd
commit c230441360
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
17 changed files with 419 additions and 186 deletions

View file

@ -60,8 +60,7 @@ long readblock( const int fd, uint8_t * const buf, const long size )
errno = 0;
while( sz < size )
{
const int psz = std::min( 65536L, size - sz );
const int n = read( fd, buf + sz, psz );
const int n = read( fd, buf + sz, std::min( 1L << 20, size - sz ) );
if( n > 0 ) sz += n;
else if( n == 0 ) break; // EOF
else if( errno != EINTR ) break;