github.com/buildpacks/pack@v0.33.3-0.20240516162812-884dd1837311/pkg/archive/umask_unix.go (about)

     1  //go:build unix
     2  
     3  package archive
     4  
     5  import (
     6  	"io/fs"
     7  	"syscall"
     8  )
     9  
    10  func init() {
    11  	Umask = fs.FileMode(syscall.Umask(0))
    12  	syscall.Umask(int(Umask))
    13  }