d7a3a090df
From the 1.17 release notes (https://golang.org/doc/go1.17#gofmt): gofmt (and go fmt) now synchronizes //go:build lines with // +build lines. More info about this change can be found at https://golang.org/design/draft-gobuild
15 lines
242 B
Go
15 lines
242 B
Go
//go:build !windows
|
|
// +build !windows
|
|
|
|
package config
|
|
|
|
import "syscall"
|
|
|
|
func umask() int {
|
|
// umask(2), which this function wraps, also sets the umask, so set it
|
|
// back.
|
|
umask := syscall.Umask(022)
|
|
syscall.Umask(umask)
|
|
return umask
|
|
}
|