[Libsysio-commit] RELEASE_1_3: libsysio/src rw.c
Brought to you by:
lward
From: Lee W. <lw...@us...> - 2007-10-09 17:13:46
|
Update of /cvsroot/libsysio/libsysio/src In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv28083 Modified Files: Tag: RELEASE_1_3 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.22 retrieving revision 1.22.2.1 diff -u -w -b -B -p -r1.22 -r1.22.2.1 --- rw.c 2 Jul 2007 18:58:17 -0000 1.22 +++ rw.c 9 Oct 2007 17:13:43 -0000 1.22.2.1 @@ -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)); |