Fix sftp-server to have process_setstat() work correctly in Win32

This fix allows WinSCP upload to finish properly as updating time was
not working otherwise with driver letter support improvement. Other sftp
clients will also work better/properly now.
This commit is contained in:
quamrulmina 2015-12-31 01:12:33 -06:00
parent 332890c330
commit 39c00bff7e

View File

@ -1023,6 +1023,14 @@ process_setstat(u_int32_t id)
if ((r = sshbuf_get_cstring(iqueue, &name, NULL)) != 0 )
fatal("%s: buffer error: %s", __func__, ssh_err(r));
#ifdef WIN32_FIXME
char resolvedname[MAXPATHLEN];
if (realpathWin32i(name, resolvedname))
{
free(name);
name = strdup(resolvedname);
}
#endif
if ((r = decode_attrib(iqueue, &a)) != 0)
fatal("%s: buffer error: %s", __func__, ssh_err(r));