Skip to content
Snippets Groups Projects
Commit 319c2db2 authored by Guy Zana's avatar Guy Zana
Browse files

fix passing IO_APPEND in sys_write()

ramfs and fatfs rely on it to function properly.
parent 6164bde8
No related branches found
No related tags found
No related merge requests found
......@@ -60,6 +60,10 @@ static int vfs_write(struct file *fp, struct uio *uio, int flags)
bytes = uio->uio_resid;
vn_lock(vp);
if (fp->f_flags & O_APPEND)
ioflags |= IO_APPEND;
if ((flags & FOF_OFFSET) == 0)
uio->uio_offset = fp->f_offset;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment