Skip to content

Conversation

wfurt
Copy link
Member

@wfurt wfurt commented Dec 7, 2022

This avoids internal direct use of readlink and uses public API to deal with weird errors and multiple links. Since this is only done once I also added check if a path is link before trying to resolve it. The linkInfo can still be null of the "ping" entry exist but either points to nowhere or it loops.

fixes #73812

@wfurt wfurt requested a review from a team December 7, 2022 02:30
@wfurt wfurt self-assigned this Dec 7, 2022
@ghost
Copy link

ghost commented Dec 7, 2022

Tagging subscribers to this area: @dotnet/ncl
See info in area-owners.md if you want to be subscribed.

Issue Details

This avoids internal direct use of readlink and uses public API to deal with weird errors and multiple links. Since this is only done once I also added check if a path is link before trying to resolve it. The linkInfo can still be null of the "ping" entry exist but either points to nowhere or it loops.

fixes #73812

Author: wfurt
Assignees: wfurt
Labels:

area-System.Net

Milestone: -

Copy link
Member

@jkotas jkotas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@wfurt wfurt merged commit 6407eae into dotnet:main Dec 10, 2022
@wfurt wfurt deleted the ping branch December 10, 2022 23:25
@ghost ghost locked as resolved and limited conversation to collaborators Jan 10, 2023
@karelz karelz added this to the 8.0.0 milestone Mar 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Determine readlink result whether should be validated or not
4 participants