Skip to content
Permalink
Branch: master
Commits on Mar 20, 2015
  1. os: don't return Chmod's error from Mkdir and OpenFile

    kzys authored and rsc committed Dec 23, 2014
    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>
Commits on Dec 17, 2014
  1. os: handle the sticky bit separately for *BSD and Solaris

    kzys authored and ianlancetaylor committed Dec 16, 2014
    open(2) and mkdir(2) won't set the sticky bit on *BSD and Solaris.
    This behavior is mentioned on sticky(8).
    see also: moby/moby#6587
    
    Fixes #8383.
    
    Change-Id: Ic4733700f9926b9fc2b6fd1f998acec34e518764
    Reviewed-on: https://go-review.googlesource.com/1673
    Reviewed-by: Ian Lance Taylor <iant@golang.org>
You can’t perform that action at this time.