File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
Common/src/System/Net/NetworkInformation Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -40,10 +40,8 @@ private static bool IsBusyboxPing(string? pingBinary)
40
40
{
41
41
if ( pingBinary != null )
42
42
{
43
- string ? linkedName = Interop . Sys . ReadLink ( pingBinary ) ;
44
-
45
- // If pingBinary is not link linkedName will be null
46
- if ( linkedName != null && linkedName . EndsWith ( "busybox" , StringComparison . Ordinal ) )
43
+ System . IO . FileSystemInfo ? linkInfo = File . ResolveLinkTarget ( pingBinary , returnFinalTarget : true ) ;
44
+ if ( linkInfo ? . Name . EndsWith ( "busybox" , StringComparison . Ordinal ) == true )
47
45
{
48
46
return true ;
49
47
}
Original file line number Diff line number Diff line change 56
56
Link =" Common\Interop\Unix\Interop.Libraries.cs" />
57
57
<Compile Include =" $(CommonPath)Interop\Unix\System.Native\Interop.Close.cs"
58
58
Link =" Common\Interop\Unix\System.Native\Interop.Close.cs" />
59
- <Compile Include =" $(CommonPath)Interop\Unix\System.Native\Interop.ReadLink.cs"
60
- Link =" Common\Interop\Unix\System.Native\Interop.ReadLink.cs" />
61
59
<Compile Include =" $(CommonPath)Interop\Unix\System.Native\Interop.Socket.cs"
62
60
Link =" Common\Interop\Unix\System.Native\Interop.Socket.cs" />
63
61
<Compile Include =" $(CommonPath)Interop\Unix\System.Native\Interop.SocketAddress.cs"
You can’t perform that action at this time.
0 commit comments