version 1.253, 2005/10/30 04:03:24 |
version 1.254, 2005/10/30 08:52:18 |
|
|
|
|
/* |
/* |
* Now that we are back to our own permissions, create ~/.ssh |
* Now that we are back to our own permissions, create ~/.ssh |
* directory if it doesn\'t already exist. |
* directory if it doesn't already exist. |
*/ |
*/ |
snprintf(buf, sizeof buf, "%.100s%s%.100s", pw->pw_dir, strcmp(pw->pw_dir, "/") ? "/" : "", _PATH_SSH_USER_DIR); |
snprintf(buf, sizeof buf, "%.100s%s%.100s", pw->pw_dir, strcmp(pw->pw_dir, "/") ? "/" : "", _PATH_SSH_USER_DIR); |
if (stat(buf, &st) < 0) |
if (stat(buf, &st) < 0) |
|
|
check_agent_present(void) |
check_agent_present(void) |
{ |
{ |
if (options.forward_agent) { |
if (options.forward_agent) { |
/* Clear agent forwarding if we don\'t have an agent. */ |
/* Clear agent forwarding if we don't have an agent. */ |
if (!ssh_agent_present()) |
if (!ssh_agent_present()) |
options.forward_agent = 0; |
options.forward_agent = 0; |
} |
} |