iphlpapi: Hint what to do when icmp does not work

André Hentschel nerv at dawncrow.de
Fri Feb 11 12:12:12 CST 2011


Otherwise the user might try running wine as root or doesn't know that this error can be easily fixed when needed.
---
 dlls/iphlpapi/icmp.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/iphlpapi/icmp.c b/dlls/iphlpapi/icmp.c
index d8ee101..41d1940 100644
--- a/dlls/iphlpapi/icmp.c
+++ b/dlls/iphlpapi/icmp.c
@@ -155,6 +155,7 @@ HANDLE WINAPI IcmpCreateFile(VOID)
     int sid=socket(AF_INET,SOCK_RAW,IPPROTO_ICMP);
     if (sid < 0) {
         ERR_(winediag)("Failed to use ICMP (network ping), this requires special permissions.\n");
+        ERR_(winediag)("Try running \"sudo setcap cap_net_raw+epi /usr/bin/wine-preloader\".\n");
         SetLastError(ERROR_ACCESS_DENIED);
         return INVALID_HANDLE_VALUE;
     }
-- 

Best Regards, André Hentschel



More information about the wine-patches mailing list