Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

copy_file also copies permissions #144

Merged
merged 2 commits into from Mar 3, 2023
Merged

Conversation

actboy168
Copy link
Contributor

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);

@gulrak gulrak added this to the v1.5.14 milestone Jun 15, 2022
@gulrak gulrak added the bug Something isn't working label Jun 15, 2022
@gulrak
Copy link
Owner

gulrak commented Mar 3, 2023

Thank you for the PR and sorry for the delay.

@gulrak gulrak merged commit 3afbd9c into gulrak:master Mar 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants