Skip to content

Commit

Permalink
Fix macOS build
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Jan 16, 2024
1 parent 1741f4d commit 6e3535f
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 @@ -237,7 +237,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 6e3535f

Please sign in to comment.