Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/linyaps_box/utils/open_file.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@

namespace linyaps_box::utils {

auto open(const std::filesystem::path &path, int flag = O_RDONLY, mode_t mode = 0)
auto open(const std::filesystem::path &path, int flag = O_PATH | O_CLOEXEC, mode_t mode = 0)
-> file_descriptor;

auto open_at(const file_descriptor &root,
const std::filesystem::path &path,
int flag = O_RDONLY,
int flag = O_PATH | O_CLOEXEC,
mode_t mode = 0) -> file_descriptor;

} // namespace linyaps_box::utils