shithub: riscv

Download patch

ref: 036ae2e397eb62ca95f05d180df14c1320dcdfe4
parent: c89b0b3c238ff4e288f259be211f3b878bd0c30d
author: cinap_lenrek <[email protected]>
date: Wed Jun 10 13:18:31 EDT 2015

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

--- a/sys/src/cmd/ip/cifsd/smb.c
+++ b/sys/src/cmd/ip/cifsd/smb.c
@@ -659,7 +659,7 @@
 		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;
 	}