mirror of
https://github.com/NixOS/nix.git
synced 2025-11-22 18:29:36 +01:00
Merge pull request #14607 from NixOS/open-directory-cloexec
libutil/unix: Add O_CLOEXEC to openDirectory
This commit is contained in:
commit
152e7e48c1
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ namespace nix {
|
||||||
|
|
||||||
Descriptor openDirectory(const std::filesystem::path & path)
|
Descriptor openDirectory(const std::filesystem::path & path)
|
||||||
{
|
{
|
||||||
return open(path.c_str(), O_RDONLY | O_DIRECTORY);
|
return open(path.c_str(), O_RDONLY | O_DIRECTORY | O_CLOEXEC);
|
||||||
}
|
}
|
||||||
|
|
||||||
void setWriteTime(
|
void setWriteTime(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue