-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Closed
Description
From @pedrobsaila #72258 (comment):
libraries\Common\src\System\Net\NetworkInformation\UnixCommandLinePing.cs : I validate result because ping executable should be check (ex: file exists) before it can be used as a command line
runtime/src/libraries/Common/src/System/Net/NetworkInformation/UnixCommandLinePing.cs
Lines 39 to 49 in 953fd35
private static bool IsBusyboxPing(string? pingBinary) { if (pingBinary != null) { string? linkedName = Interop.Sys.ReadLink(pingBinary); // If pingBinary is not link linkedName will be null if (linkedName != null && linkedName.EndsWith("busybox", StringComparison.Ordinal)) { return true; }