Skip to content

Commit

Permalink
Fix macOS build
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Jun 13, 2023
1 parent 96f597f commit 0348614
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 @@ -234,7 +234,7 @@ static PeerInfo getPeerInfo(int remote)
socklen_t credLen = sizeof(cred);
if (getsockopt(remote, SOL_LOCAL, LOCAL_PEERCRED, &cred, &credLen) == -1)
throw SysError("getting peer credentials");
peer = { false, 0, true, cred.cr_uid, false, 0 };
peer = { .uid = cred.cr_uid };

#endif

Expand Down

0 comments on commit 0348614

Please sign in to comment.