diff --git a/mount/redox/scheme.rs b/mount/redox/scheme.rs index 3ef5a9de5cb642806b13852d2f8615bc3e214871..042d5a2e7c4ee0093b3f0bec125a63fcdcfd3538 100644 --- a/mount/redox/scheme.rs +++ b/mount/redox/scheme.rs @@ -371,8 +371,8 @@ impl Scheme for FileScheme { } if ! child.1.is_dir() { - if ! child.1.permission(uid, gid, Node::MODE_WRITE) { - // println!("file not writable {:o}", parent.1.mode); + if child.1.uid != uid { + // println!("file not owned by current user {}", parent.1.uid); return Err(Error::new(EACCES)); }