Skip to content

native: Always open a file with Open/Write modes #13865

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

Merged
merged 1 commit into from
May 5, 2014

Conversation

alexcrichton
Copy link
Member

Previously, windows was using the CREATE_NEW flag which fails if the file
previously existed, which differed from the unix semantics. This alters the
opening to use the OPEN_ALWAYS flag to mirror the unix semantics.

Closes #13861

Previously, windows was using the CREATE_NEW flag which fails if the file
previously existed, which differed from the unix semantics. This alters the
opening to use the OPEN_ALWAYS flag to mirror the unix semantics.

Closes rust-lang#13861
bors added a commit that referenced this pull request May 5, 2014
Previously, windows was using the CREATE_NEW flag which fails if the file
previously existed, which differed from the unix semantics. This alters the
opening to use the OPEN_ALWAYS flag to mirror the unix semantics.

Closes #13861
@bors bors closed this May 5, 2014
@bors bors merged commit 8375a22 into rust-lang:master May 5, 2014
@Seldaek
Copy link
Contributor

Seldaek commented May 5, 2014

Thanks!

@alexcrichton alexcrichton deleted the issue-13861 branch May 6, 2014 03:57
arcnmx pushed a commit to arcnmx/rust that referenced this pull request Jan 9, 2023
minor: Tweak Clippy policy wording and drop a useless `format!`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failure to open existing files in Open mode on windows
4 participants