diff --git a/windows/syscall_windows.go b/windows/syscall_windows.go index 4c9bc55b..f4d19644 100644 --- a/windows/syscall_windows.go +++ b/windows/syscall_windows.go @@ -561,9 +561,6 @@ func Fsync(fd Handle) (err error) { } func Chmod(path string, mode uint32) (err error) { - if mode == 0 { - return syscall.EINVAL - } p, e := UTF16PtrFromString(path) if e != nil { return e