Signed-off-by: allencloud <allen.sun@daocloud.io> Upstream-commit: aef02273d9cdf8144b95c9c9a8d1e119d24b2d9d Component: engine
14 lines
239 B
Go
14 lines
239 B
Go
// +build !windows
|
|
|
|
package system
|
|
|
|
import (
|
|
"syscall"
|
|
)
|
|
|
|
// Umask sets current process's file mode creation mask to newmask
|
|
// and returns oldmask.
|
|
func Umask(newmask int) (oldmask int, err error) {
|
|
return syscall.Umask(newmask), nil
|
|
}
|