diff options
author | Damien Miller <djm@mindrot.org> | 2013-01-09 05:54:48 +0100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2013-01-09 05:54:48 +0100 |
commit | 4e14a58f3f01842ba6a50f84d0ddaa12d6bed62b (patch) | |
tree | 7b33d659923d21446d6ef49c9e444acfb578a92a /auth.c | |
parent | - (dtucker) [Makefile.in] Add some scaffolding so that the new regress (diff) | |
download | openssh-4e14a58f3f01842ba6a50f84d0ddaa12d6bed62b.tar.xz openssh-4e14a58f3f01842ba6a50f84d0ddaa12d6bed62b.zip |
- dtucker@cvs.openbsd.org 2012/12/14 05:26:43
[auth.c]
use correct string in error message; from rustybsd at gmx.fr
Diffstat (limited to 'auth.c')
-rw-r--r-- | auth.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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. * @@ -494,13 +494,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); |