← Commit list

0882e3951d

Viktor Szakats
Viktor Szakats
2026-06-15
SUCCESS Duration: 219s

Subject

servers: mask to `S_IFMT` in unix socket path attribute check

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

tests/server/util.c+1 -1
@@ -701,7 +701,7 @@ int bind_unix_socket(curl_socket_t sock, const char *unix_socket,
errno, curlx_strerror(errno, errbuf, sizeof(errbuf)));
return -1;
}
- if((statbuf.st_mode & S_IFSOCK) != S_IFSOCK) {
+ if((statbuf.st_mode & S_IFMT) != S_IFSOCK) {
logmsg("Error binding socket, %s is not a socket", unix_socket);
return -1;
}