diff options
author | alfred <alfred@FreeBSD.org> | 2001-11-30 06:24:34 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2001-11-30 06:24:34 +0000 |
commit | 5b71594d40ff3f19848c320ce27a89c16190950f (patch) | |
tree | 118b5ecdfcc0955cd38ae7fb5656373df857beb8 /lib/libstand/write.c | |
parent | 5f34351719ae589baa319e74d4a5432cc99775ac (diff) | |
download | FreeBSD-src-5b71594d40ff3f19848c320ce27a89c16190950f.zip FreeBSD-src-5b71594d40ff3f19848c320ce27a89c16190950f.tar.gz |
Back out my 'fix', resid is different for strategy than for write
Diffstat (limited to 'lib/libstand/write.c')
-rw-r--r-- | lib/libstand/write.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libstand/write.c b/lib/libstand/write.c index 861a96f..ea9d491 100644 --- a/lib/libstand/write.c +++ b/lib/libstand/write.c @@ -89,8 +89,8 @@ write(fd, dest, bcount) btodb(f->f_offset), bcount, dest, &resid); if (errno) return (-1); - f->f_offset += (bcount - resid); - return (bcount - resid); + f->f_offset += resid; + return (resid); } resid = bcount; if ((errno = (f->f_ops->fo_write)(f, dest, bcount, &resid))) |