mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-19 05:37:54 +00:00
parent
87c19cb11a
commit
c5c9d71df3
@ -230,7 +230,7 @@ Libc::File_descriptor *Libc::Vfs_plugin::open(char const *path, int flags,
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
fd->flags = flags & (O_NONBLOCK|O_APPEND);
|
||||
fd->flags = flags & (O_ACCMODE|O_NONBLOCK|O_APPEND);
|
||||
|
||||
if ((flags & O_TRUNC) && (ftruncate(fd, 0) == -1)) {
|
||||
errno = EINVAL; /* XXX which error code fits best ? */
|
||||
|
Loading…
Reference in New Issue
Block a user