← Commit list

b3675fe80a

Viktor Szakats
Viktor Szakats
2026-06-22
SUCCESS Duration: 193s

Subject

libssh2: drop stray double-negative from `strncmp()` result

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 →

lib/vssh/libssh2.c+1 -1
@@ -1207,7 +1207,7 @@ static CURLcode sftp_quote_stat(struct Curl_easy *data,
sshc->acceptfail = TRUE;
}
- if(!!strncmp(cmd, "chmod", 5)) {
+ if(strncmp(cmd, "chmod", 5)) {
/* Since chown and chgrp only set owner OR group but libssh2 wants to set
* them both at once, we need to obtain the current ownership first. This
* takes an extra protocol round trip.