[Libsysio-commit] HEAD: libsysio/src rw.c
Brought to you by:
lward
From: Lee W. <lw...@us...> - 2007-10-09 17:13:37
|
Update of /cvsroot/libsysio/libsysio/src In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv30614 Modified Files: rw.c Log Message: >From Bob Glossman (bo...@cr...), during regression testing: Error number from pwrite is negative. Doh! Worse, _do_ipiov should be using the negated return code from _sysio_sum_iovec and not it's own. Fixed. Index: rw.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/src/rw.c,v retrieving revision 1.23 retrieving revision 1.24 diff -u -w -b -B -p -r1.23 -r1.24 --- rw.c 19 Sep 2007 16:01:33 -0000 1.23 +++ rw.c 9 Oct 2007 17:13:33 -0000 1.24 @@ -582,7 +582,7 @@ _do_ipiov(int fd, cc = _sysio_sum_iovec(iov, count); if (cc < 0) { - errno = -EINVAL; + errno = (int )-cc; return IOID_FAIL; } xtv = malloc(sizeof(struct intnl_xtvec)); |