summaryrefslogtreecommitdiff
path: root/ssh.c
diff options
context:
space:
mode:
Diffstat (limited to 'ssh.c')
-rw-r--r--ssh.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/ssh.c b/ssh.c
index de4e61552..cceb36e83 100644
--- a/ssh.c
+++ b/ssh.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssh.c,v 1.428 2015/10/16 18:40:49 djm Exp $ */ 1/* $OpenBSD: ssh.c,v 1.429 2015/10/25 23:42:00 dtucker Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -714,13 +714,14 @@ main(int ac, char **av)
714 options.gss_deleg_creds = 1; 714 options.gss_deleg_creds = 1;
715 break; 715 break;
716 case 'i': 716 case 'i':
717 if (stat(optarg, &st) < 0) { 717 p = tilde_expand_filename(optarg, original_real_uid);
718 if (stat(p, &st) < 0)
718 fprintf(stderr, "Warning: Identity file %s " 719 fprintf(stderr, "Warning: Identity file %s "
719 "not accessible: %s.\n", optarg, 720 "not accessible: %s.\n", p,
720 strerror(errno)); 721 strerror(errno));
721 break; 722 else
722 } 723 add_identity_file(&options, NULL, p, 1);
723 add_identity_file(&options, NULL, optarg, 1); 724 free(p);
724 break; 725 break;
725 case 'I': 726 case 'I':
726#ifdef ENABLE_PKCS11 727#ifdef ENABLE_PKCS11