aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/error.go
diff options
context:
space:
mode:
authorYuval Pavel Zholkover <paulzhol@gmail.com>2017-12-16 19:06:10 +0200
committerIan Lance Taylor <iant@golang.org>2018-02-23 22:37:55 +0000
commita5e8e2d99815346cdff61905237056e0095c75ea (patch)
treef9e8cd0aac93fa9c007d15b0e500c1557c4a2b6c /src/runtime/error.go
parent788464724cb061198bab1fb4f7885eb46d38f847 (diff)
downloadgo-a5e8e2d99815346cdff61905237056e0095c75ea.tar.xz
os: respect umask in Mkdir and OpenFile on BSD systems when perm has ModeSticky set
Instead of calling Chmod directly on perm, stat the created file/dir to extract the actual permission bits which can be different from perm due to umask. Fixes #23120. Change-Id: I3e70032451fc254bf48ce9627e98988f84af8d91 Reviewed-on: https://go-review.googlesource.com/84477 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/runtime/error.go')
0 files changed, 0 insertions, 0 deletions