提交 ac107304 编写于 作者: B bernard

fix O_APPEND write issue in RAMFS

上级 ac850ef3
......@@ -264,6 +264,9 @@ int dfs_ramfs_open(struct dfs_fd *file)
file->data = dirent;
file->size = dirent->size;
if (file->flags & DFS_O_APPEND)
file->pos = file->size;
else
file->pos = 0;
return DFS_STATUS_OK;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册