Files
blackbox/pkg/bbutil/umask_posix.go
cuishuang 4cb3808914 Formatting code with gofmt
Signed-off-by: cuishuang <imcusg@gmail.com>
2024-09-25 16:21:34 +08:00

13 lines
255 B
Go

//go:build !windows
// +build !windows
package bbutil
import "syscall"
// Umask is a no-op on Windows, and calls syscall.Umask on all other
// systems. On Windows it returns 0, which is a decoy.
func Umask(mask int) int {
return syscall.Umask(mask)
}