Ensure libmutton.ini is created with 0600 permissions (on *nix)

This commit is contained in:
2025-05-29 16:52:15 +00:00
parent fa6f057b49
commit 50ab27c674
3 changed files with 21 additions and 0 deletions
+12
View File
@@ -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)
}