Return to sftp-client.c CVS log | Up to [local] / src / usr.bin / ssh |
version 1.112, 2014/01/16 07:31:09 | version 1.113, 2014/01/17 00:21:06 | ||
---|---|---|---|
|
|
||
local_path, strerror(errno)); | local_path, strerror(errno)); | ||
goto fail; | goto fail; | ||
} | } | ||
if (st.st_size > size) { | if (st.st_size < 0) { | ||
error("\"%s\" has negative size", local_path); | |||
goto fail; | |||
} | |||
if ((u_int64_t)st.st_size > size) { | |||
error("Unable to resume download of \"%s\": " | error("Unable to resume download of \"%s\": " | ||
"local file is larger than remote", local_path); | "local file is larger than remote", local_path); | ||
fail: | fail: |