]> Cypherpunks repositories - gostls13.git/commit
os: fix passing long paths to Chmod on Windows
authorIbrahim AshShohail <ibra.sho@gmail.com>
Wed, 28 Jun 2017 17:09:15 +0000 (20:09 +0300)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 28 Jun 2017 18:49:21 +0000 (18:49 +0000)
commitcfb8404e76f94b8bf97188a4470541e9d1ddafa4
tree2a50581ea1735bd61b0c62f1bf61e98816eed2af
parente1ced3219506938daf404bb2373333cd3352f350
os: fix passing long paths to Chmod on Windows

os.Chmod returns an error when passed a long path (>=260) characters on
Windows. CL 32451 fixed most file functions in os. This change applies the
same fix to os.Chmod.

Fixes #20829

Change-Id: I3270db8317ce6e06e6d77070a32a5df6ab2491e0
Reviewed-on: https://go-review.googlesource.com/47010
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/os/file_posix.go
src/os/os_test.go