Correct issues with building new SSH Agent fixes

This commit is contained in:
Jonathan White
2020-02-23 22:51:18 -05:00
parent 40ad211f3e
commit 409190c85a
2 changed files with 3 additions and 2 deletions

View File

@@ -77,7 +77,7 @@ void SSHAgent::setUseOpenSSH(bool useOpenSSH)
}
#endif
QString SSHAgent::socketPath(bool allowOverride = true) const
QString SSHAgent::socketPath(bool allowOverride) const
{
QString socketPath;
@@ -91,6 +91,7 @@ QString SSHAgent::socketPath(bool allowOverride = true) const
socketPath = QProcessEnvironment::systemEnvironment().value("SSH_AUTH_SOCK");
}
#else
Q_UNUSED(allowOverride)
socketPath = "\\\\.\\pipe\\openssh-ssh-agent";
#endif

View File

@@ -37,7 +37,7 @@ public:
bool isEnabled() const;
void setEnabled(bool enabled);
QString socketPath(bool allowOverride) const;
QString socketPath(bool allowOverride = true) const;
QString authSockOverride() const;
void setAuthSockOverride(QString& authSockOverride);
#ifdef Q_OS_WIN