Merge pull request #1623 from armink/fix_fcntl

[dfs] Fix dfs_file_ioctl return check on fcntl.
This commit is contained in:
Bernard Xiong
2018-07-13 17:28:55 +08:00
committed by GitHub

View File

@@ -449,7 +449,7 @@ int fcntl(int fildes, int cmd, ...)
}
else ret = -EBADF;
if (ret != 0)
if (ret < 0)
{
rt_set_errno(ret);
ret = -1;