mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-01-01 00:57:32 +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.
11 lines
170 B
Go
11 lines
170 B
Go
//+build windows
|
|
|
|
// Windows API functions for manipulating ACLs.
|
|
package api
|
|
|
|
import (
|
|
"golang.org/x/sys/windows"
|
|
)
|
|
|
|
var advapi32 = windows.MustLoadDLL("advapi32.dll")
|