-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Change the wording so that users aren't told to run Wine as root any more as that's unsupported and dangerous. Instead specify that they need special permissions to be able to create the socket (sockets can be created without the need to be root specifically). Also cuts the lines down below the 80 char mark. - --- dlls/ws2_32/socket.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFGiB/3uqCUopk11kIRAtCIAJ9ApRKM0rbp/w73EabqK2MKXJoVEQCcCtDh eXD5owofcCmFlW1uj6hdF0Q= =7UA7 -----END PGP SIGNATURE-----
>From 844bb4631e078e89adc1910b2e0df5097ad14846 Mon Sep 17 00:00:00 2001 From: Ben Hodgetts <[EMAIL PROTECTED]> 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 To: wine-patches <[EMAIL PROTECTED]> --- 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