Commit 546cf4d7 authored by Norby, Tom's avatar Norby, Tom

#2. Windows resolve undefined identifier.

parent 2e12dcc5
Pipeline #100730 failed with stages
in 5 minutes and 16 seconds
......@@ -12,6 +12,10 @@
#include <QByteArray>
#include <QString>
#ifndef S_IRWXU
#define S_IRWXU 0x0700 // read/write/exec by owner only
#endif
namespace rsm
{
void assert_ssh_session(ssh_session session, const char* error_message)
......@@ -151,7 +155,6 @@ SFTPSession::~SFTPSession()
bool SFTPSession::mkdir(QString dirName)
{
if (nullptr == p->sftpSession) return false;
// S_IRWXU: create dir with read/write/exec by owner only
int rc = sftp_mkdir(p->sftpSession, dirName.toStdString().c_str(), S_IRWXU);
if (rc != SSH_OK)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment