]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
servers: fix error message if unix socket path is not a socket
authorViktor Szakats <commit@vsz.me>
Mon, 15 Jun 2026 10:48:59 +0000 (12:48 +0200)
committerViktor Szakats <commit@vsz.me>
Mon, 15 Jun 2026 11:07:08 +0000 (13:07 +0200)
Follow-up to 99fb36797a3f0b64ad20fcb8b83026875640f8e0
Cherry-picked from #22010

Closes #22020

tests/server/util.c

index 000a80682032c4b2b394c7df013483b87d9171fa..a1c3dd87de83d90f92b50068e773df8afc2fcce6 100644 (file)
@@ -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