summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/libstand/write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libstand/write.c b/lib/libstand/write.c
index 022e770..ea9d491 100644
--- a/lib/libstand/write.c
+++ b/lib/libstand/write.c
@@ -95,5 +95,5 @@ write(fd, dest, bcount)
resid = bcount;
if ((errno = (f->f_ops->fo_write)(f, dest, bcount, &resid)))
return (-1);
- return (0);
+ return (bcount - resid);
}
OpenPOWER on IntegriCloud