Skip to content
Snippets Groups Projects
Commit 33427789 authored by Jeremy Soller's avatar Jeremy Soller Committed by GitHub
Browse files

Merge pull request #26 from ids1024/unlinkuid

Require same uid as owner to unlink, not write permission
parents 7fc1f16a ad4826eb
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