mirror of
https://github.com/NixOS/nix.git
synced 2025-11-16 23:42:43 +01:00
* Sync with the trunk.
This commit is contained in:
commit
587dc8aa00
16 changed files with 106 additions and 42 deletions
|
|
@ -13,6 +13,7 @@
|
|||
|
||||
#include <iostream>
|
||||
#include <unistd.h>
|
||||
#include <cstring>
|
||||
|
||||
|
||||
namespace nix {
|
||||
|
|
@ -158,6 +159,7 @@ void RemoteStore::connectToDaemon()
|
|||
addr.sun_family = AF_UNIX;
|
||||
if (socketPathRel.size() >= sizeof(addr.sun_path))
|
||||
throw Error(format("socket path `%1%' is too long") % socketPathRel);
|
||||
using namespace std;
|
||||
strcpy(addr.sun_path, socketPathRel.c_str());
|
||||
|
||||
if (connect(fdSocket, (struct sockaddr *) &addr, sizeof(addr)) == -1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue