fs/vfs: Fix after recent changes. write() was return negative values in errno. Noted by Jussi Kivilinna.
This commit is contained in:
parent
25079a9c93
commit
cc09e77a94
|
@ -246,7 +246,7 @@ ssize_t write(int fd, FAR const void *buf, size_t nbytes)
|
|||
ret = nx_write(fd, buf, nbytes);
|
||||
if (ret < 0)
|
||||
{
|
||||
set_errno(ret);
|
||||
set_errno(-ret);
|
||||
ret = ERROR;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue