summaryrefslogtreecommitdiff
path: root/libtrivfs/fsys-getroot.c
diff options
context:
space:
mode:
Diffstat (limited to 'libtrivfs/fsys-getroot.c')
-rw-r--r--libtrivfs/fsys-getroot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libtrivfs/fsys-getroot.c b/libtrivfs/fsys-getroot.c
index c22dd241..4c41fd0d 100644
--- a/libtrivfs/fsys-getroot.c
+++ b/libtrivfs/fsys-getroot.c
@@ -105,7 +105,7 @@ trivfs_S_fsys_getroot (struct trivfs_control *cntl,
cred->po = malloc (sizeof (struct trivfs_peropen));
cred->po->refcnt = 1;
cred->po->cntl = cntl;
- cred->po->openmodes = (flags & ~O_NONBLOCK);
+ cred->po->openmodes = flags;
cred->po->hook = 0;
ports_port_ref (cntl);
if (trivfs_peropen_create_hook)