]> Cypherpunks repositories - gostls13.git/commit
os: handle the sticky bit separately for *BSD and Solaris
authorKato Kazuyoshi <kato.kazuyoshi@gmail.com>
Tue, 16 Dec 2014 16:22:17 +0000 (08:22 -0800)
committerIan Lance Taylor <iant@golang.org>
Wed, 17 Dec 2014 16:07:28 +0000 (16:07 +0000)
commit6262902070569201f220a40d7abbbf88795ad47d
tree23eb81d45d74f03c752c6c46c07d208d9ad02a4a
parent60ea2c594bdfb8d0ae4e13c8a028e59ed07bf9a9
os: handle the sticky bit separately for *BSD and Solaris

open(2) and mkdir(2) won't set the sticky bit on *BSD and Solaris.
This behavior is mentioned on sticky(8).
see also: https://github.com/dotcloud/docker/pull/6587

Fixes #8383.

Change-Id: Ic4733700f9926b9fc2b6fd1f998acec34e518764
Reviewed-on: https://go-review.googlesource.com/1673
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/os/file.go
src/os/file_unix.go
src/os/sticky_bsd.go [new file with mode: 0644]
src/os/sticky_notbsd.go [new file with mode: 0644]