mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-05-28 07:14:48 -05:00
Mostly cosmetic change: don't claim to have found an SSH agent if
SSH_AUTH_SOCK is defined to the empty string. (Because a common way to 'unset' it is to run commands like 'SSH_AUTH_SOCK= putty -load thing'.) [originally from svn r9225]
This commit is contained in:
parent
4fd112e15d
commit
8cd720d608
@ -17,7 +17,8 @@
|
|||||||
|
|
||||||
int agent_exists(void)
|
int agent_exists(void)
|
||||||
{
|
{
|
||||||
if (getenv("SSH_AUTH_SOCK") != NULL)
|
const char *p = getenv("SSH_AUTH_SOCK");
|
||||||
|
if (p && *p)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user