Skip to content

Read special reparse points without accessing it - #10662

Merged
Ilya (iSazonov) merged 2 commits into
PowerShell:masterfrom
iSazonov:fix-reparsepoint-read
Oct 3, 2019
Merged

Ilya (iSazonov) merged 2 commits into
PowerShell:masterfrom
iSazonov:fix-reparsepoint-read

Conversation

@iSazonov

@iSazonov Ilya (iSazonov) commented Oct 1, 2019 •

Copy link
Copy Markdown
Collaborator

PR Summary

Fix #7127

  • Enhance enum FileDesiredAccess with zero value GenericZero
  • Use the GenericZero as desired access mode to read reparse point without access it

From docs:

If desired access is zero, the application can query certain metadata such as file, directory, or device attributes without accessing that file or device, even if GENERIC_READ access would have been denied

PR Context

PR Checklist

If desired access is zero, the application can query certain metadata such as file, directory, or device attributes without accessing that file or device, even if GENERIC_READ access would have been denied
@iSazonov Ilya (iSazonov) added the CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log label Oct 1, 2019
@iSazonov Ilya (iSazonov) added this to the 7.0.0-preview.5 milestone Oct 1, 2019
@iSazonov Ilya (iSazonov) self-assigned this Oct 1, 2019
@iSazonov

Copy link
Copy Markdown
Collaborator Author

/cc Michael Klement (@mklement0)

@mklement0

Copy link
Copy Markdown
Contributor

I appreciate the fix, Ilya (@iSazonov).

@iSazonov
Ilya (iSazonov) merged commit 91bf346 into PowerShell:master Oct 3, 2019
@iSazonov
Ilya (iSazonov) deleted the fix-reparsepoint-read branch October 3, 2019 14:41
@ghost

Copy link
Copy Markdown

🎉v7.0.0-preview.5 has been released which incorporates this pull request.:tada:

Handy links:

Ryan Yates (kilasuit) pushed a commit to kilasuit/PowerShell that referenced this pull request Nov 9, 2019
* Enhance enum FileDesiredAccess with zero value GenericZero
* Use the GenericZero as desired access mode to read reparse point without access it

From docs:
If desired access is zero, the application can query certain metadata such as file, directory, or device attributes without accessing that file or device, even if GENERIC_READ access would have been denied
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj-contribs/PowerShell that referenced this pull request Aug 6, 2026
* Enhance enum FileDesiredAccess with zero value GenericZero
* Use the GenericZero as desired access mode to read reparse point without access it

From docs:
If desired access is zero, the application can query certain metadata such as file, directory, or device attributes without accessing that file or device, even if GENERIC_READ access would have been denied
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

.LinkType and .Target properties of System.IO.DirectoryInfo instances do not correctly reflect system-defined junctions

3 participants