From b3675fe80a3393264d58d0359b3c5ab332f3a9f9 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Mon, 22 Jun 2026 10:34:38 +0200 Subject: [PATCH] libssh2: drop stray double-negative from `strncmp()` result Just a tidy-up. Logic remains identical. Spotted by GitHub Code Quality Follow-up to a867314f4fba0f05201226093335d75f3dbd0f3f #16382 Closes #22126 --- lib/vssh/libssh2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vssh/libssh2.c b/lib/vssh/libssh2.c index 371667d44b..b12d69f317 100644 --- a/lib/vssh/libssh2.c +++ b/lib/vssh/libssh2.c @@ -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.