diff --git a/mount/redox/scheme.rs b/mount/redox/scheme.rs index 314d9934b218d4ccb7773ea41ce18531b8a0266c..3ef5a9de5cb642806b13852d2f8615bc3e214871 100644 --- a/mount/redox/scheme.rs +++ b/mount/redox/scheme.rs @@ -269,16 +269,6 @@ impl Scheme for FileScheme { node.1.gid = gid; fs.write_at(node.0, &node.1)?; - if (flags & O_ACCMODE == O_RDONLY || flags & O_ACCMODE == O_RDWR) && ! node.1.permission(uid, gid, Node::MODE_READ) { - // println!("file not readable {:o}", node.1.mode); - return Err(Error::new(EACCES)); - } - - if (flags & O_ACCMODE == O_WRONLY || flags & O_ACCMODE == O_RDWR) && ! node.1.permission(uid, gid, Node::MODE_WRITE) { - // println!("file not writable {:o}", node.1.mode); - return Err(Error::new(EACCES)); - } - if dir { Box::new(DirResource::new(path.to_string(), node.0, Vec::new())) } else {