-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Failure to open existing files in Open mode on windows #13861
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
Labels
O-windows
Operating system: Windows
Comments
This succeeds on unix, and I expect windows to have the same behavior. Thanks for the report! |
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Apr 30, 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 rust-lang#13861
bors
added a commit
that referenced
this issue
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
arcnmx
pushed a commit
to arcnmx/rust
that referenced
this issue
Jan 9, 2023
derive 'Hash' clippy doesn't like that `PartialEq` is derived, and `Hash` is manually implemented. This PR resolves that by deriving the `Hash` implementation.
flip1995
pushed a commit
to flip1995/rust
that referenced
this issue
Jan 9, 2025
…-lang#13871) In this case, the lint can be triggered as well as `is_empty()` will be found on the target type. One such case was found in Clippy sources (first commit) changelog: [`len_zero`]: trigger if deref target implements `is_empty()` Close rust-lang#13861
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using this code on windows the first time it works and creates the test file, the second time I run it it fails to open the file, opening with
Append
orTruncate
mode works though.Not sure if it fails on linux, but I'll assume not since nobody reported this yet.
The text was updated successfully, but these errors were encountered: