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)
4040 {
4141 if ( pingBinary != null )
4242 {
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 )
4745 {
4846 return true ;
4947 }
Original file line number Diff line number Diff line change 5656 Link =" Common\Interop\Unix\Interop.Libraries.cs" />
5757 <Compile Include =" $(CommonPath)Interop\Unix\System.Native\Interop.Close.cs"
5858 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" />
6159 <Compile Include =" $(CommonPath)Interop\Unix\System.Native\Interop.Socket.cs"
6260 Link =" Common\Interop\Unix\System.Native\Interop.Socket.cs" />
6361 <Compile Include =" $(CommonPath)Interop\Unix\System.Native\Interop.SocketAddress.cs"
You can’t perform that action at this time.
0 commit comments