mirror of
https://github.com/rwinkhart/libmutton.git
synced 2026-08-28 04:46:42 -04:00
13 lines
287 B
Go
13 lines
287 B
Go
//go:build !windows
|
|
|
|
package cfg
|
|
|
|
import "syscall"
|
|
|
|
// setUmask sets the file mode creation mask (umask) for the current process.
|
|
// The call to syscall.Umask needs to be embedded in another function to allow
|
|
// compilation on Windows.
|
|
func setUmask(umask int) {
|
|
syscall.Umask(umask)
|
|
}
|