mirror of
https://github.com/netbirdio/netbird.git
synced 2024-11-25 17:43:38 +01:00
ff729f6755
When building client without CGO, user.Lookup attempts to get user from /etc/passwd Which doesn't have the user as MacOS uses opendirectoryd as user directory
11 lines
160 B
Go
11 lines
160 B
Go
//go:build !darwin
|
|
// +build !darwin
|
|
|
|
package ssh
|
|
|
|
import "os/user"
|
|
|
|
func userNameLookup(username string) (*user.User, error) {
|
|
return user.Lookup(username)
|
|
}
|