servers: fix error message if unix socket path is not a socket

Follow-up to 99fb36797a
Cherry-picked from #22010

Closes #22020
This commit is contained in:
Viktor Szakats 2026-06-15 12:48:59 +02:00
parent a6d9783894
commit e70f8ebd34
No known key found for this signature in database

View 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