提交 c779104e 编写于 作者: armink_ztl's avatar armink_ztl

[dfs] Fix dfs_file_ioctl return check on fcntl.

上级 60435316
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册