4cf30300ee
On Windows, syscall.Umask doesn't exist, and trying to compile with it doesn't work. Add two files, controlled by build tags, that return the umask on Unix systems and return a no-op default on Windows, so that we can compile on all platforms.
10 lines
210 B
Go
10 lines
210 B
Go
// +build windows
|
|
|
|
package config
|
|
|
|
// Windows doesn't provide the umask syscall, so return something sane as a
|
|
// default. os.Chmod will only care about the owner bits anyway.
|
|
func umask() int {
|
|
return 077
|
|
}
|