Skip to content
Snippets Groups Projects
Commit 823abc56 authored by Avi Kivity's avatar Avi Kivity
Browse files

vfs: fix flags conversion on open()


The vfs converts the read/write flags from 0/1/2 (read-only/write-only/rw) to
bit fields which are more easily testable.  But in doing so it corrupts the
other flags.

Fix FFLAGS and OFLAGS to preserve those other flags.  The test for a file
that is not readable or writable is dropped, since it is impossible to fail.

Signed-off-by: default avatarAvi Kivity <avi@cloudius-systems.com>
parent cf5619f0
No related branches found
No related tags found
No related merge requests found
Loading
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