write should return the number of bytes written, not 0 on success.
Submitted by: Jonathan Mini <mini@haikugeek.com> PR: kern/32350
This commit is contained in:
parent
f2f94c9675
commit
fd19a949b4
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user