-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Fix up buffer management getting network roots #24600
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
Conversation
1d897a3 to
5d9951c
Compare
Fixes the logic used when getting the PSDrive DisplayRoot for network PSDrive paths to exclude null terminators.
5d9951c to
237a871
Compare
src/System.Management.Automation/engine/Interop/Windows/WNetGetConnection.cs
Outdated
Show resolved
Hide resolved
iSazonov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with one minor comment.
test/powershell/Modules/Microsoft.PowerShell.Management/Get-PSDrive.Tests.ps1
Outdated
Show resolved
Hide resolved
…Drive.Tests.ps1 Co-authored-by: Ilya <darpa@yandex.ru>
iSazonov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jborean93 Please address two comments - we are near to merge.
src/System.Management.Automation/engine/Interop/Windows/WNetGetConnection.cs
Outdated
Show resolved
Hide resolved
src/System.Management.Automation/engine/Interop/Windows/WNetGetConnection.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: Ilya <darpa@yandex.ru>
|
Thanks for the review and merge @iSazonov. Any chance to mark this as a backport candidate? |
|
@PowerShell/powershell-maintainers We need more time in the preview release stage before considering this change for back-port. |
Fixes the logic used when getting the PSDrive DisplayRoot for network PSDrive paths to exclude null terminators.
PR Summary
Fixes the logic used when getting the PSDrive DisplayRoot for network PSDrive paths to exclude null terminators.
PR Context
2nd attempt at fixes: #21064. Original was #21068.
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:or[ WIP ]to the beginning of the title (theWIPbot will keep its status check atPendingwhile the prefix is present) and remove the prefix when the PR is ready.- [ ] Issue filed:
(which runs in a different PS Host).