diff options
Diffstat (limited to 'vendor/github.com/docker/docker/pkg/system/umask.go')
-rw-r--r-- | vendor/github.com/docker/docker/pkg/system/umask.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/vendor/github.com/docker/docker/pkg/system/umask.go b/vendor/github.com/docker/docker/pkg/system/umask.go new file mode 100644 index 000000000..5a10eda5a --- /dev/null +++ b/vendor/github.com/docker/docker/pkg/system/umask.go @@ -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 +} |