mirror of
https://github.com/curl/curl.git
synced 2026-06-02 00:24:15 +03:00
time_t-fixes: remove typecasts to 'long' for info.filetime
They're now wrong. Reported-by: Michael Kaufmann Closes #2277
This commit is contained in:
parent
9409d0c26c
commit
ddd31dc5dd
5 changed files with 11 additions and 11 deletions
|
|
@ -5,7 +5,7 @@
|
|||
* | (__| |_| | _ <| |___
|
||||
* \___|\___/|_| \_\_____|
|
||||
*
|
||||
* Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||
* Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||
*
|
||||
* This software is licensed as described in the file COPYING, which
|
||||
* you should have received as part of this distribution. The terms
|
||||
|
|
@ -1627,7 +1627,7 @@ static CURLcode ssh_statemach_act(struct connectdata *conn, bool *block)
|
|||
break;
|
||||
}
|
||||
if(rc == 0) {
|
||||
data->info.filetime = (long)attrs.mtime;
|
||||
data->info.filetime = attrs.mtime;
|
||||
}
|
||||
|
||||
state(conn, SSH_SFTP_TRANS_INIT);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue