mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2024-12-29 00:30:30 +01:00
4324a09fc9
To simulate failures opening a cache file, fixtures are written without the read permission bits. Since Unix permission bits have no meaning on Windows, a slightly more complicated solution is required to achieve the same permissions. Thankfully, there's a library to abstract that already.
9 lines
88 B
Go
9 lines
88 B
Go
//+build !windows
|
|
|
|
package acl
|
|
|
|
import "os"
|
|
|
|
// Chmod is os.Chmod.
|
|
var Chmod = os.Chmod
|