Skip to content

Conversation

@jborean93
Copy link
Collaborator

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

Fixes the logic used when getting the PSDrive DisplayRoot for network
PSDrive paths to exclude null terminators.
Copy link
Collaborator

@iSazonov iSazonov left a 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.

…Drive.Tests.ps1

Co-authored-by: Ilya <darpa@yandex.ru>
@iSazonov iSazonov added the CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log label Nov 18, 2024
@iSazonov iSazonov requested a review from SteveL-MSFT November 18, 2024 06:49
@microsoft-github-policy-service microsoft-github-policy-service bot added the Review - Needed The PR is being reviewed label Nov 25, 2024
Copy link
Collaborator

@iSazonov iSazonov left a 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.

@microsoft-github-policy-service microsoft-github-policy-service bot added Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept and removed Review - Needed The PR is being reviewed labels Nov 26, 2024
Co-authored-by: Ilya <darpa@yandex.ru>
@iSazonov iSazonov closed this Nov 26, 2024
@iSazonov iSazonov reopened this Nov 26, 2024
@iSazonov iSazonov self-assigned this Nov 26, 2024
@iSazonov iSazonov removed the Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept label Nov 26, 2024
@iSazonov iSazonov merged commit 22beba4 into PowerShell:master Nov 26, 2024
42 checks passed
@jborean93 jborean93 deleted the wnet-buffer branch November 26, 2024 07:54
@jborean93
Copy link
Collaborator Author

Thanks for the review and merge @iSazonov. Any chance to mark this as a backport candidate?

@TravisEz13
Copy link
Member

@PowerShell/powershell-maintainers We need more time in the preview release stage before considering this change for back-port.

pwshBot pushed a commit to pwshBot/PowerShell that referenced this pull request Apr 10, 2025
Fixes the logic used when getting the PSDrive DisplayRoot for network PSDrive paths to exclude null terminators.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Backport-7.5.x-Migrated 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.

Get-PSDrive returns incorrect DisplayRoot property for mounted drive letters in 7.4.1

3 participants