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

unset umask (#2927)

This commit is contained in:
Kevin Stiehl
2021-06-21 09:45:10 +02:00
committed by GitHub
parent 8883a5148c
commit c0ae0df2f0

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)
}