Skip to content
Snippets Groups Projects
Unverified Commit ad4826eb authored by Ian Douglas Scott's avatar Ian Douglas Scott
Browse files

Require same uid as owner to unlink, not write permission

parent 7fc1f16a
No related branches found
No related tags found
No related merge requests found
......@@ -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));
}
......
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