mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Back out my 'fix', resid is different for strategy than for write
This commit is contained in:
parent
7735bb0f64
commit
25993d3a47
1 changed files with 2 additions and 2 deletions
|
|
@ -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)))
|
||||
|
|
|
|||
Loading…
Reference in a new issue