Skip to content

Fix File.Exists for pipe paths on Windows #117333

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

DoctorKrolic
Copy link
Contributor

Fixes: #69604

Also while working on a core fix (commit 1) I noticed that dwFileAttributes is often compared to -1. Windows documentation reffers to it as INVALID_FILE_ATTRIBUTES, so I decided to name this constant for clarity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-System.IO community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using File.Exists to check the pipe created will make the NamedPipeClientStream connect fail
1 participant