mirror of
https://github.com/NixOS/nix
synced 2025-06-25 14:51:16 +02:00
parent
de71cebc3a
commit
6686b54077
7 changed files with 9 additions and 9 deletions
|
@ -29,7 +29,6 @@ AutoCloseFD createUnixDomainSocket()
|
|||
return fdSocket;
|
||||
}
|
||||
|
||||
|
||||
AutoCloseFD createUnixDomainSocket(const Path & path, mode_t mode)
|
||||
{
|
||||
auto fdSocket = nix::createUnixDomainSocket();
|
||||
|
@ -100,7 +99,6 @@ static void bindConnectProcHelper(
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
void bind(Socket fd, const std::string & path)
|
||||
{
|
||||
unlink(path.c_str());
|
||||
|
@ -108,10 +106,9 @@ void bind(Socket fd, const std::string & path)
|
|||
bindConnectProcHelper("bind", ::bind, fd, path);
|
||||
}
|
||||
|
||||
|
||||
void connect(Socket fd, const std::string & path)
|
||||
void connect(Socket fd, const std::filesystem::path & path)
|
||||
{
|
||||
bindConnectProcHelper("connect", ::connect, fd, path);
|
||||
bindConnectProcHelper("connect", ::connect, fd, path.string());
|
||||
}
|
||||
|
||||
AutoCloseFD connect(const std::filesystem::path & path)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue