未验证 提交 cc883ad2 编写于 作者: B Bernard Xiong 提交者: GitHub

Merge pull request #1891 from qgyhd1234/dfs

[dfs] fix ioctl getflag/setflag issue.
...@@ -189,7 +189,7 @@ int dfs_file_ioctl(struct dfs_fd *fd, int cmd, void *args) ...@@ -189,7 +189,7 @@ int dfs_file_ioctl(struct dfs_fd *fd, int cmd, void *args)
int mask = O_NONBLOCK | O_APPEND; int mask = O_NONBLOCK | O_APPEND;
flags &= mask; flags &= mask;
fd->flags &= mask; fd->flags &= ~mask;
fd->flags |= flags; fd->flags |= flags;
} }
return 0; return 0;
......
...@@ -455,7 +455,7 @@ int fcntl(int fildes, int cmd, ...) ...@@ -455,7 +455,7 @@ int fcntl(int fildes, int cmd, ...)
ret = -1; ret = -1;
} }
return 0; return ret;
} }
RTM_EXPORT(fcntl); RTM_EXPORT(fcntl);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册