mirror of
https://github.com/curl/curl.git
synced 2024-12-15 06:40:09 +08:00
parent
a8fbdb461c
commit
dc18b40b40
@ -1017,8 +1017,8 @@ int main(int argc, char *argv[])
|
||||
unix_socket = argv[arg];
|
||||
if(strlen(unix_socket) >= sizeof(sau.sun_path)) {
|
||||
fprintf(stderr,
|
||||
"socksd: socket path must be shorter than %zu chars\n",
|
||||
sizeof(sau.sun_path));
|
||||
"socksd: socket path must be shorter than %zu chars: %s\n",
|
||||
sizeof(sau.sun_path), unix_socket);
|
||||
return 0;
|
||||
}
|
||||
socket_domain = AF_UNIX;
|
||||
|
@ -2030,8 +2030,9 @@ int main(int argc, char *argv[])
|
||||
#ifdef USE_UNIX_SOCKETS
|
||||
unix_socket = argv[arg];
|
||||
if(strlen(unix_socket) >= sizeof(me.sau.sun_path)) {
|
||||
fprintf(stderr, "sws: socket path must be shorter than %zu chars\n",
|
||||
sizeof(me.sau.sun_path));
|
||||
fprintf(stderr,
|
||||
"sws: socket path must be shorter than %zu chars: %s\n",
|
||||
sizeof(me.sau.sun_path), unix_socket);
|
||||
return 0;
|
||||
}
|
||||
socket_type = "unix";
|
||||
|
Loading…
Reference in New Issue
Block a user