summaryrefslogtreecommitdiff
path: root/sys/src/cmd/cwfs
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2017-04-29 17:28:35 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2017-04-29 17:28:35 +0200
commitb4b2cd72b0e674300e5ec0030967621a05049c35 (patch)
treedcef383b563bddeb4860f631baef8eb8baca287f /sys/src/cmd/cwfs
parent51eaebf4f01ce8b8de4e32d679fe98b69ae64ad0 (diff)
cwfs: allow "none" user to rename files
Diffstat (limited to 'sys/src/cmd/cwfs')
-rw-r--r--sys/src/cmd/cwfs/9p2.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/sys/src/cmd/cwfs/9p2.c b/sys/src/cmd/cwfs/9p2.c
index 9f5d27c57..990933b99 100644
--- a/sys/src/cmd/cwfs/9p2.c
+++ b/sys/src/cmd/cwfs/9p2.c
@@ -1506,16 +1506,11 @@ fs_wstat(Chan* chan, Fcall* f, Fcall*, char* strs)
/*
* 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;