Skip to content

Commit 59d56cc

Browse files
[Android] Fix path to ping on Android API 21-27 (#79076)
1 parent a94fa06 commit 59d56cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libraries/Common/src/System/Net/NetworkInformation/UnixCommandLinePing.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ namespace System.Net.NetworkInformation
99
{
1010
internal static class UnixCommandLinePing
1111
{
12-
// Ubuntu has ping under /bin, OSX under /sbin, ArchLinux under /usr/bin.
13-
private static readonly string[] s_binFolders = { "/bin/", "/sbin/", "/usr/bin/" };
12+
// Ubuntu has ping under /bin, OSX under /sbin, ArchLinux under /usr/bin, Android under /system/bin.
13+
private static readonly string[] s_binFolders = { "/bin/", "/sbin/", "/usr/bin/", "/system/bin" };
1414
private const string s_ipv4PingFile = "ping";
1515
private const string s_ipv6PingFile = "ping6";
1616

0 commit comments

Comments
 (0)