1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-16 23:42:43 +01:00

Add `Settings::nixDaemonSocketFile'.

This commit is contained in:
Ludovic Courtès 2013-02-18 23:05:40 +01:00 committed by Eelco Dolstra
parent 5ea138dc4b
commit 3e067ac11c
5 changed files with 14 additions and 10 deletions

View file

@ -91,7 +91,7 @@ void RemoteStore::connectToDaemon()
throw SysError("cannot create Unix domain socket");
closeOnExec(fdSocket);
string socketPath = settings.nixStateDir + DEFAULT_SOCKET_PATH;
string socketPath = settings.nixDaemonSocketFile;
/* Urgh, sockaddr_un allows path names of only 108 characters. So
chdir to the socket directory so that we can pass a relative