cifsd: smbrename is still ok when file is readonly (fixed git)

This commit is contained in:
cinap_lenrek 2015-06-10 17:18:31 +02:00
parent c89b0b3c23
commit 036ae2e397

View file

@ -659,7 +659,7 @@ smbrename(Req *r, uchar *h, uchar *p, uchar *e)
r->respond(r, smbmkerror()); r->respond(r, smbmkerror());
goto out; goto out;
} }
if(!matchattr(d, sattr) || (dosfileattr(d) & ATTR_READONLY)){ if(!matchattr(d, sattr)){
r->respond(r, STATUS_NO_SUCH_FILE); r->respond(r, STATUS_NO_SUCH_FILE);
goto out; goto out;
} }