ref: b4b2cd72b0e674300e5ec0030967621a05049c35
parent: 51eaebf4f01ce8b8de4e32d679fe98b69ae64ad0
author: cinap_lenrek <[email protected]>
date: Sat Apr 29 13:28:35 EDT 2017
cwfs: allow "none" user to rename files
--- a/sys/src/cmd/cwfs/9p2.c
+++ b/sys/src/cmd/cwfs/9p2.c
@@ -1506,16 +1506,11 @@
/*
* Get the file.
- * If user 'none' (uid == 0), can't do anything;
* if filesystem is read-only, can't change anything.
*/
if((file = filep(chan, f->fid, 0)) == nil)
return Efid;
p = p1 = nil;
- if(file->uid == 0){
- error = Eaccess;
- goto out;
- }
if(file->fs->dev->type == Devro){
error = Eronly;
goto out;