cifsd: smbrename is still ok when file is readonly (fixed git)
This commit is contained in:
parent
c89b0b3c23
commit
036ae2e397
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue