mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-03-04 02:14:40 +01:00

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.
8 lines
88 B
Go
8 lines
88 B
Go
//+build !windows
|
|
|
|
package acl
|
|
|
|
import "os"
|
|
|
|
// Chmod is os.Chmod.
|
|
var Chmod = os.Chmod
|