Skip to content

Commit

Permalink
windows: don't return EINVAL on zero Chmod mode
Browse files Browse the repository at this point in the history
To match CL 174320

Updates golang/go#20858

Change-Id: Ic4e332c8a84b7d427fc7057aa5b0c2877cc9f7ea
Reviewed-on: https://go-review.googlesource.com/c/sys/+/174321
Run-TryBot: Brad Fitzpatrick <[email protected]>
TryBot-Result: Gobot Gobot <[email protected]>
Reviewed-by: Ian Lance Taylor <[email protected]>
  • Loading branch information
bradfitz committed Apr 29, 2019
1 parent 2cc0cad commit d89cdac
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions windows/syscall_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d89cdac

Please sign in to comment.