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:
commit
003f6a4cb4
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user