ref: bb2712663391a418d6c10ca3591e0133290665b3
parent: 16675d656637e4b83b6eb4569fd8225cc15ede86
author: cinap_lenrek <cinap_lenrek@felloff.net>
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;
--
⑨