Skip to content

Commit

Permalink
Fix macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Sep 23, 2021
1 parent 18e3c8c commit a9d0ac5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nix/daemon.cc
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ static PeerInfo getPeerInfo(int fd)
xucred cred;
socklen_t credLen = sizeof(cred);
if (getsockopt(fd, SOL_LOCAL, LOCAL_PEERCRED, &cred, &credLen) == 0)
peer.uid = cred.uid;
peer.uid = cred.cr_uid;

#endif

Expand Down

0 comments on commit a9d0ac5

Please sign in to comment.