mirror of
https://github.com/rwinkhart/libmutton.git
synced 2026-09-03 15:47:27 -04:00
Ensure libmutton.ini is created with 0600 permissions (on *nix)
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
//go:build !windows
|
||||
|
||||
package core
|
||||
|
||||
import "syscall"
|
||||
|
||||
// setUmask sets the file mode creation mask (umask) for the current process.
|
||||
// The call to syscall.Umask needs to be embedded in another function to allow
|
||||
// compilation on Windows.
|
||||
func setUmask(umask int) {
|
||||
syscall.Umask(umask)
|
||||
}
|
||||
Reference in New Issue
Block a user