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

Don't always set GENERIC_READ when opening files on windows #1585

Merged
merged 1 commit into from
May 31, 2023

Conversation

benjaminwinger
Copy link
Collaborator

Following up #1573 (comment).

It turns out the problems I ran into the first time were due to a logic error. I was reading the Windows docs for _open, which, unlike the corresponding Linux docs, don't mention that O_RDONLY is 0.

@codecov
Copy link

codecov bot commented May 29, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.02 ⚠️

Comparison is base (2478bc8) 91.93% compared to head (171f404) 91.92%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1585      +/-   ##
==========================================
- Coverage   91.93%   91.92%   -0.02%     
==========================================
  Files         703      703              
  Lines       25339    25339              
==========================================
- Hits        23295    23292       -3     
- Misses       2044     2047       +3     
Impacted Files Coverage Δ
src/common/file_utils.cpp 71.60% <ø> (ø)

... and 2 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@andyfengHKU andyfengHKU merged commit 35b8694 into master May 31, 2023
8 checks passed
@andyfengHKU andyfengHKU deleted the windows-file-access-mode branch May 31, 2023 17:58
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.

None yet

3 participants