1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-11-06 09:09:19 +02:00

fix: permission issues (#3198)

This commit is contained in:
Christian Volk
2021-10-22 13:24:34 +02:00
committed by GitHub
parent 0a30108af3
commit 33e2f8d335

11
cmd/init_unix.go Normal file
View File

@@ -0,0 +1,11 @@
// +build !windows
package cmd
import "syscall"
func init() {
// unset umask otherwise permissions on file or directory
// creation are altered in unpredictable ways.
syscall.Umask(0)
}