mirror of
https://github.com/NixOS/nix.git
synced 2025-11-16 23:42:43 +01:00
parent
de71cebc3a
commit
6686b54077
7 changed files with 9 additions and 9 deletions
|
|
@ -324,7 +324,7 @@ std::unique_ptr<Logger> makeJSONLogger(const std::filesystem::path & path, bool
|
|||
AutoCloseFD fd =
|
||||
std::filesystem::is_socket(path)
|
||||
? connect(path)
|
||||
: toDescriptor(open(path.c_str(), O_CREAT | O_APPEND | O_WRONLY, 0644));
|
||||
: toDescriptor(open(path.string().c_str(), O_CREAT | O_APPEND | O_WRONLY, 0644));
|
||||
if (!fd)
|
||||
throw SysError("opening log file %1%", path);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue