mirror of
https://github.com/containers/podman.git
synced 2025-12-11 00:37:38 +08:00
15 lines
270 B
Go
15 lines
270 B
Go
//go:build !windows
|
|
// +build !windows
|
|
|
|
package system
|
|
|
|
import (
|
|
"golang.org/x/sys/unix"
|
|
)
|
|
|
|
// Umask sets current process's file mode creation mask to newmask
|
|
// and returns oldmask.
|
|
func Umask(newmask int) (oldmask int, err error) {
|
|
return unix.Umask(newmask), nil
|
|
}
|