summaryrefslogtreecommitdiff
path: root/usr.bin/ssh
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@cvs.openbsd.org>2012-12-14 05:26:44 +0000
committerDarren Tucker <dtucker@cvs.openbsd.org>2012-12-14 05:26:44 +0000
commiteb5c8a6a06bc98aef7c2137e1b361e5b450f44f9 (patch)
tree9dc6b0255f3223b8898f46c1e70d58f053f5cda3 /usr.bin/ssh
parenta501f33039647bc4f2d39ea4b8b39b39a5131b65 (diff)
use correct string in error message; from rustybsd at gmx.fr
Diffstat (limited to 'usr.bin/ssh')
-rw-r--r--usr.bin/ssh/auth.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/ssh/auth.c b/usr.bin/ssh/auth.c
index e537ef70f45..4a1723d805d 100644
--- a/usr.bin/ssh/auth.c
+++ b/usr.bin/ssh/auth.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auth.c,v 1.98 2012/12/02 20:34:09 djm Exp $ */
+/* $OpenBSD: auth.c,v 1.99 2012/12/14 05:26:43 dtucker Exp $ */
/*
* Copyright (c) 2000 Markus Friedl. All rights reserved.
*
@@ -404,13 +404,12 @@ static int
secure_filename(FILE *f, const char *file, struct passwd *pw,
char *err, size_t errlen)
{
- char buf[MAXPATHLEN];
struct stat st;
/* check the open file to avoid races */
if (fstat(fileno(f), &st) < 0) {
snprintf(err, errlen, "cannot stat file %s: %s",
- buf, strerror(errno));
+ file, strerror(errno));
return -1;
}
return auth_secure_path(file, &st, pw->pw_dir, pw->pw_uid, err, errlen);