Skip to content

Commit 1947ae4

Browse files
Add the /system/bin path for Android (#80120)
Co-authored-by: Simon Rozsival <simon@rozsival.com>
1 parent a8e690e commit 1947ae4

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)