sftpgo/utils/umask_unix.go
Jo Vandeginste 0737c672f5 Add connectionID to as many entries as possible
Signed-off-by: Jo Vandeginste <Jo.Vandeginste@kuleuven.be>
2019-09-05 22:58:14 +02:00

15 lines
278 B
Go

// +build !windows
package utils
import (
"syscall"
"github.com/drakkan/sftpgo/logger"
)
// SetUmask sets umask on unix systems
func SetUmask(umask int, configValue string) {
logger.Debug(logSender, "", "set umask to %v (%v)", configValue, umask)
syscall.Umask(umask)
}