1
0
mirror of https://github.com/golang/go synced 2024-11-23 04:20:03 -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: default:
createmode = OPEN_EXISTING createmode = OPEN_EXISTING
} }
var attrs uint32 = FILE_ATTRIBUTE_NORMAL var attrs uint32 = FILE_ATTRIBUTE_NORMAL
if perm&S_IWRITE == 0 { if perm&S_IWRITE == 0 {
attrs = FILE_ATTRIBUTE_READONLY attrs = FILE_ATTRIBUTE_READONLY