summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordtucker <dtucker@openbsd.org>2012-12-14 05:26:43 +0000
committerdtucker <dtucker@openbsd.org>2012-12-14 05:26:43 +0000
commitc76b1e7acc5a99e86f7f9357774f257cb94a789b (patch)
tree14029da7f05ffb3d7be36b5656cd50262376fa10
parentoops, debug printf sneaked in. i must be out of practice. (diff)
downloadwireguard-openbsd-c76b1e7acc5a99e86f7f9357774f257cb94a789b.tar.xz
wireguard-openbsd-c76b1e7acc5a99e86f7f9357774f257cb94a789b.zip
use correct string in error message; from rustybsd at gmx.fr
-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);