mirror of
https://github.com/drakkan/sftpgo.git
synced 2024-11-21 23:20:24 +00:00
0737c672f5
Signed-off-by: Jo Vandeginste <Jo.Vandeginste@kuleuven.be>
15 lines
278 B
Go
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)
|
|
}
|