Closed Maschell closed 2 years ago
The target file when calling std::filesystem::copy_file opens the file with O_CREAT | O_WRONLY | O_EXCL. This PR adds supports for the O_CREAT | O_WRONLY flag-combination and add a checks for O_EXCL
std::filesystem::copy_file
O_CREAT | O_WRONLY | O_EXCL
O_CREAT | O_WRONLY
O_EXCL
The target file when calling
std::filesystem::copy_file
opens the file withO_CREAT | O_WRONLY | O_EXCL
. This PR adds supports for theO_CREAT | O_WRONLY
flag-combination and add a checks forO_EXCL