diff --git a/sys/src/cmd/ip/cifsd/smb.c b/sys/src/cmd/ip/cifsd/smb.c index 9e6f9cf3c..47e065c32 100644 --- a/sys/src/cmd/ip/cifsd/smb.c +++ b/sys/src/cmd/ip/cifsd/smb.c @@ -659,7 +659,7 @@ smbrename(Req *r, uchar *h, uchar *p, uchar *e) r->respond(r, smbmkerror()); goto out; } - if(!matchattr(d, sattr) || (dosfileattr(d) & ATTR_READONLY)){ + if(!matchattr(d, sattr)){ r->respond(r, STATUS_NO_SUCH_FILE); goto out; }