diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-09-03 13:53:32 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-09-03 13:53:32 -0600 |
commit | b18eb34f9902d206de83f6824be4d90f0bc86950 (patch) | |
tree | 90c0b0ca4effc294268be95771ec26e355f44d9f /src/nslcd_systemd/nslcd_systemd.go | |
parent | 70623707fd76465c7d03fced48bfa14454ef9e09 (diff) |
fix the nslcd_proto.Ucred definition
Diffstat (limited to 'src/nslcd_systemd/nslcd_systemd.go')
-rw-r--r-- | src/nslcd_systemd/nslcd_systemd.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nslcd_systemd/nslcd_systemd.go b/src/nslcd_systemd/nslcd_systemd.go index fec60c3..542afd2 100644 --- a/src/nslcd_systemd/nslcd_systemd.go +++ b/src/nslcd_systemd/nslcd_systemd.go @@ -42,7 +42,7 @@ func getpeercred(conn *net.UnixConn) (cred nslcd_proto.Ucred, err error) { } defer file.Close() _cred, err := syscall.GetsockoptUcred(int(file.Fd()), syscall.SOL_SOCKET, syscall.SO_PEERCRED) - cred = nslcd_proto.Ucred{*_cred} + cred = nslcd_proto.Ucred(*_cred) return } |