]> Zhao Yanbai Git Server - minix.git/commit
Compare read/write buf size against SSIZE_MAX instead of "< 0"
authorThomas Veerman <thomas@minix3.org>
Fri, 16 Dec 2011 08:45:04 +0000 (08:45 +0000)
committerThomas Veerman <thomas@minix3.org>
Wed, 21 Dec 2011 10:46:09 +0000 (10:46 +0000)
commit54c0eb9aa642098413fc0ebe93d72fc1e086e733
tree92ac2d321afe732aaad6b813e95b0ff2c9667151
parent9f9f89312359dd80ed20b6cfe4c2b3fe893e185b
Compare read/write buf size against SSIZE_MAX instead of "< 0"

The nbyte in read(int fildes, void *buf, size_t nbyte) is unsigned,
so although technically we're doing the same comparison, this is more
in line with POSIX.

The comparison was moved to read_write as that routine is used within
VFS to let it VFS write out coredumps.
servers/avfs/read.c