From: Viktor Szakats Date: Mon, 15 Jun 2026 10:48:59 +0000 (+0200) Subject: servers: fix error message if unix socket path is not a socket X-Git-Tag: rc-8_21_0-3~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e70f8ebd34edade24df442152f52b361abaf4309;p=thirdparty%2Fcurl.git servers: fix error message if unix socket path is not a socket Follow-up to 99fb36797a3f0b64ad20fcb8b83026875640f8e0 Cherry-picked from #22010 Closes #22020 --- diff --git a/tests/server/util.c b/tests/server/util.c index 000a806820..a1c3dd87de 100644 --- a/tests/server/util.c +++ b/tests/server/util.c @@ -706,7 +706,7 @@ int bind_unix_socket(curl_socket_t sock, const char *unix_socket, } #ifdef S_IFSOCK if((statbuf.st_mode & S_IFSOCK) != S_IFSOCK) { - logmsg("Error binding socket, failed to stat %s", unix_socket); + logmsg("Error binding socket, %s is not a socket", unix_socket); return -1; } #endif