8000 Read special reparse points without accessing it by iSazonov · Pull Request #10662 · PowerShell/PowerShell · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@iSazonov
Copy link
Collaborator
@iSazonov iSazonov commented Oct 1, 2019

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 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 iSazonov added this to the 7.0.0-preview.5 milestone Oct 1, 2019
@iSazonov iSazonov requested a review from anmenaga as a code owner October 1, 2019 14:33
@iSazonov iSazonov self-assigned this Oct 1, 2019
@iSazonov
Copy link
Collaborator Author
iSazonov commented Oct 1, 2019

/cc @mklement0

@mklement0
Copy link
Contributor

I appreciate the fix, @iSazonov.

@iSazonov iSazonov merged commit 91bf346 into PowerShell:master Oct 3, 2019
@iSazonov iSazonov deleted the fix-reparsepoint-read branch October 3, 2019 14:41
@ghost
Copy link
ghost commented Oct 23, 2019

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

Handy links:

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
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

0