ws2_32: Dont tell users to run Wine as root when sockets not
creatable
Ben Hodgetts (Enverex)
ben at atomnet.co.uk
Fri Jun 29 18:48:06 CDT 2007
Currently when Wine is unable to make sockets it tells the user to run
as root.That's generally a bad idea because running Wine is dangerous
and unsupported. It's also technically wrong as a user can have the
needed rights without being root.
-------------- next part --------------
>From 366b1bba5b964c56f5aa8c1fbd48a5626730d10c Mon Sep 17 00:00:00 2001
From: Ben Hodgetts <ben at atomnet.co.uk>
Date: Sat, 30 Jun 2007 00:27:59 +0100
Subject: [PATCH] ws2_32: Dont tell users to run Wine as root when
sockets not creatable
---
dlls/ws2_32/socket.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c
index 90fa9b0..5984790 100644
--- a/dlls/ws2_32/socket.c
+++ b/dlls/ws2_32/socket.c
@@ -3767,9 +3767,11 @@ SOCKET WINAPI WSASocketW(int af, int type, int
protocol,
if (GetLastError() == WSAEACCES) /* raw socket denied */
{
if (type == SOCK_RAW)
- MESSAGE("WARNING: Trying to create a socket of type
SOCK_RAW, will fail unless running as root\n");
+ MESSAGE("WARNING: Trying to create a socket of type
SOCK_RAW, this"
+ " will fail unless you have special permissions.\n");
else
- MESSAGE("WS_SOCKET: not enough privileges to create
socket, try running as root\n");
+ MESSAGE("WS_SOCKET: Failed to create socket, this requires"
+ " special permissions.\n");
SetLastError(WSAESOCKTNOSUPPORT);
}
--
1.5.2.2
More information about the wine-patches
mailing list