mirror of
https://github.com/netbirdio/netbird.git
synced 2026-09-16 11:49:06 +02:00
12 lines
246 B
Go
12 lines
246 B
Go
//go:build darwin && !ios
|
|
|
|
package cmd
|
|
|
|
import "os"
|
|
|
|
// currentUIDForTest exposes os.Getuid for the darwin dropprivs tests
|
|
// without leaking an os import into the test file itself.
|
|
func currentUIDForTest() uint32 {
|
|
return uint32(os.Getuid())
|
|
}
|