Closed actboy168 closed 1 year ago
Reproduce:
fs::path file1("temp1.txt"); fs::path file2("temp2.txt"); fs::permissions(file1, fs::perms::none); fs::permissions(file2, fs::perms::owner_write); fs::copy_file(file1, file2, fs::copy_options::overwrite_existing); assert(fs::status(file2).permissions() == fs::perms::none);
Thank you for the PR and sorry for the delay.
Reproduce: