1
0
mirror of https://github.com/golang/go synced 2024-11-22 19:54:39 -07:00
This commit is contained in:
Jes Cok 2023-11-15 21:04:25 +08:00
parent 27587df5e1
commit 82c6275cb4

View File

@ -381,7 +381,6 @@ func Open(path string, mode int, perm uint32) (fd Handle, err error) {
default:
createmode = OPEN_EXISTING
}
var attrs uint32 = FILE_ATTRIBUTE_NORMAL
if perm&S_IWRITE == 0 {
attrs = FILE_ATTRIBUTE_READONLY