]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
libssh: fix `-Wsign-compare` in 32-bit builds by dropping a redundant check
authorViktor Szakats <commit@vsz.me>
Sun, 5 Apr 2026 09:32:48 +0000 (11:32 +0200)
committerViktor Szakats <commit@vsz.me>
Sun, 5 Apr 2026 13:23:02 +0000 (15:23 +0200)
Follow-up to 8c8eeba5225599a1f5750ece1d15751a8bfce0bb #21214 (wrong silencing)
Follow-up to c049c37acd074a61bbd07eebe25fdf32af575a2a #18989 (add redundant check)
Follow-up to c988ec9f41060144e175b519f9017c569ac8d3db #9328 (make check fail)
Follow-up to 44a02d2532c4e6dabb8f2a074d52d5e99ff533be #9324 (add original check)

Closes #21225

lib/vssh/libssh.c

index f5ad541cd19b4ab022b1a9924305b3919c5d5157..0faf830768c3f2eca1cc084f9554c30b62544539 100644 (file)
@@ -1661,9 +1661,6 @@ static int myssh_in_SFTP_QUOTE_STAT(struct Curl_easy *data,
       myssh_quote_error(data, sshc, NULL);
       return SSH_NO_ERROR;
     }
-    if(date > (time_t)UINT_MAX)
-      /* because the liubssh API cannot deal with a larger value */
-      date = UINT_MAX;
     if(!strncmp(cmd, "atime", 5))
       sshc->quote_attrs->atime = (uint32_t)date;
     else /* mtime */