fs/vfs: Fix after recent changes. write() was return negative values in errno. Noted by Jussi Kivilinna.

This commit is contained in:
Gregory Nutt 2017-10-18 10:17:55 -06:00
parent 25079a9c93
commit cc09e77a94
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}