summaryrefslogtreecommitdiff
path: root/usr.bin/ssh
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2005-02-16 09:56:45 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2005-02-16 09:56:45 +0000
commitfc4c77927880fb5deab9cf73f6bfa41350f69b38 (patch)
tree75b6ee4145a2a1612ce993f13ae14416a4417306 /usr.bin/ssh
parente8ca928a1456fb5696131d87e31e893569cccad9 (diff)
Better diagnostic if an identity file is not accesible. ok markus@ djm@
Diffstat (limited to 'usr.bin/ssh')
-rw-r--r--usr.bin/ssh/ssh.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/ssh/ssh.c b/usr.bin/ssh/ssh.c
index 77febd6afa1..c767dc7840b 100644
--- a/usr.bin/ssh/ssh.c
+++ b/usr.bin/ssh/ssh.c
@@ -40,7 +40,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: ssh.c,v 1.230 2004/11/07 17:57:30 jmc Exp $");
+RCSID("$OpenBSD: ssh.c,v 1.231 2005/02/16 09:56:44 otto Exp $");
#include <openssl/evp.h>
#include <openssl/err.h>
@@ -292,7 +292,8 @@ again:
case 'i':
if (stat(optarg, &st) < 0) {
fprintf(stderr, "Warning: Identity file %s "
- "does not exist.\n", optarg);
+ "not accessible: %s.\n", optarg,
+ strerror(errno));
break;
}
if (options.num_identity_files >=