1
mirror of https://github.com/rapid7/metasploit-payloads synced 2024-12-21 05:35:54 +01:00

Land #90, errno fix for posixterp

This commit is contained in:
William Vu 2014-07-09 14:29:11 -05:00
commit 003f6a4cb4

View File

@ -175,7 +175,11 @@ DWORD request_fs_file_channel_open(Remote *remote, Packet *packet)
// Invalid file?
if (!(ctx->fd = fopen(expandedFilePath, mode)))
{
#ifdef _WIN32
res = GetLastError();
#else
res = errno;
#endif
break;
}