Initial commit
This commit is contained in:
13
vendor/github.com/hyperhq/hypercli/pkg/system/umask.go
generated
vendored
Normal file
13
vendor/github.com/hyperhq/hypercli/pkg/system/umask.go
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
// +build !windows
|
||||
|
||||
package system
|
||||
|
||||
import (
|
||||
"syscall"
|
||||
)
|
||||
|
||||
// Umask sets current process's file mode creation mask to newmask
|
||||
// and return oldmask.
|
||||
func Umask(newmask int) (oldmask int, err error) {
|
||||
return syscall.Umask(newmask), nil
|
||||
}
|
||||
Reference in New Issue
Block a user