2008-10-27 Atsushi Enomoto <atsushi@ximian.com>
authorAtsushi Eno <atsushieno@gmail.com>
Mon, 27 Oct 2008 21:51:30 +0000 (21:51 -0000)
committerAtsushi Eno <atsushieno@gmail.com>
Mon, 27 Oct 2008 21:51:30 +0000 (21:51 -0000)
* Ping.cs : use privileged mode for non-unix. On Windows there is
  no /usr/bin/ping.

svn path=/trunk/mcs/; revision=117210

mcs/class/System/System.Net.NetworkInformation/ChangeLog
mcs/class/System/System.Net.NetworkInformation/Ping.cs

index 2d704336b5e770c8e043aa05d7cfe4f4bc9422c0..7b433955350714506a6bdd6f27864331c8e1c050 100644 (file)
@@ -1,3 +1,8 @@
+2008-10-27  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * Ping.cs : use privileged mode for non-unix. On Windows there is
+         no /usr/bin/ping.
+
 2008-10-04 Gonzalo Paniagua Javier <gonzalo@novell.com>
 
        * NetworkInterface.cs: detect wireless 802.11 on linux.
index bea15c25a2ca45d1e33ba2bb5c7ba247852a3ece..7056ee6f99a6824e53a46a49b3a61233b6d34a25 100644 (file)
@@ -80,6 +80,8 @@ namespace System.Net.NetworkInformation {
                                if (!canSendPrivileged && WindowsIdentity.GetCurrent ().Name == "root")
                                        canSendPrivileged = true;
                        }
+                       else
+                               canSendPrivileged = true;
                }
                
                public Ping ()