Merge pull request #1623 from armink/fix_fcntl
[dfs] Fix dfs_file_ioctl return check on fcntl.
This commit is contained in:
commit
2c0f31b9ed
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue