Ben Hodgetts : ws2_32: Don' t tell users to run Wine as root when sockets not creatable.
Module: wine Branch: master Commit: f438e524e780ed40a070b7a27667031d4536b322 URL: http://source.winehq.org/git/wine.git/?a=commit;h=f438e524e780ed40a070b7a276... Author: Ben Hodgetts <ben(a)atomnet.co.uk> Date: Sat Jun 30 00:27:59 2007 +0100 ws2_32: Don't 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 b3f1bae..60c4e44 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); }
participants (1)
-
Alexandre Julliard