mirror of
https://github.com/containers/podman.git
synced 2025-09-28 01:04:28 +08:00
Initial checkin from CRI-O repo
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
This commit is contained in:
13
vendor/github.com/containers/storage/pkg/system/umask.go
generated
vendored
Normal file
13
vendor/github.com/containers/storage/pkg/system/umask.go
generated
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
// +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
|
||||
}
|
Reference in New Issue
Block a user