]> Cypherpunks repositories - gostls13.git/commit
os: don't return Chmod's error from Mkdir and OpenFile
authorKato Kazuyoshi <kato.kazuyoshi@gmail.com>
Tue, 23 Dec 2014 05:05:07 +0000 (21:05 -0800)
committerRuss Cox <rsc@golang.org>
Fri, 20 Mar 2015 18:33:00 +0000 (18:33 +0000)
commit9c0b145e4ca75df68da0fb11fb122bcc3b6eff27
tree81a652cb997d9151b34ec1a573d2c0748a683569
parent69b2f70fa11a6d801eb852daf27948e92010362d
os: don't return Chmod's error from Mkdir and OpenFile

Mkdir and OpenFile call Chmod internally on *BSD and Solaris,
because these OSes don't handle the sticky bit correctly.

However Chmod's error should be ignored. It shouldn't hide
the fact that a file itself is created.

Fixes #8383

Change-Id: Ia2e0b2ba72712d73a0a48ba5a263432e0fff31a5
Reviewed-on: https://go-review.googlesource.com/2057
Reviewed-by: Russ Cox <rsc@golang.org>
src/os/file.go
src/os/file_unix.go