mirror of
https://github.com/PowerShell/Win32-OpenSSH.git
synced 2025-07-24 14:35:35 +02:00
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:
parent
332890c330
commit
39c00bff7e
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user