Settings: Add bool get()

This commit is contained in:
Eelco Dolstra 2014-09-17 15:18:13 +02:00
parent eca29bd72d
commit d37d012774
4 changed files with 13 additions and 3 deletions

View file

@ -108,7 +108,7 @@ int main(int argc, char * * argv)
/* Pass on the location of the daemon client's SSH
authentication socket. */
string sshAuthSock = settings.get("ssh-auth-sock", "");
string sshAuthSock = settings.get("ssh-auth-sock", string(""));
if (sshAuthSock != "") setenv("SSH_AUTH_SOCK", sshAuthSock.c_str(), 1);
string host = settings.sshSubstituterHosts.front();