diff --git a/src/utils/file.c b/src/utils/file.c index 568f66b5..71a62713 100644 --- a/src/utils/file.c +++ b/src/utils/file.c @@ -1150,8 +1150,7 @@ int fio_send_pages(FILE* in, FILE* out, pgFile *file, if ((int)hdr.arg < 0) /* read error */ { - errno = -(int)hdr.arg; - return -1; + return (int)hdr.arg; } blknum = hdr.arg;