mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-12 10:55:20 +02:00
09cd271415
* fixes `go build` on windows
18 lines
273 B
Go
18 lines
273 B
Go
//go:build !windows
|
|
|
|
package cmd
|
|
|
|
import (
|
|
"syscall"
|
|
)
|
|
|
|
func getSysProcAttr(uid int, gid int) *syscall.SysProcAttr {
|
|
return &syscall.SysProcAttr{
|
|
Credential: &syscall.Credential{
|
|
Uid: uint32(uid),
|
|
Gid: uint32(gid),
|
|
NoSetGroups: true,
|
|
},
|
|
}
|
|
}
|