mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-27 15:54:22 +02:00
- dtucker@cvs.openbsd.org 2012/12/14 05:26:43
[auth.c] use correct string in error message; from rustybsd at gmx.fr
This commit is contained in:
parent
0fc77297e6
commit
4e14a58f3f
@ -1,3 +1,9 @@
|
|||||||
|
20130109
|
||||||
|
- (djm) OpenBSD CVS Sync
|
||||||
|
- dtucker@cvs.openbsd.org 2012/12/14 05:26:43
|
||||||
|
[auth.c]
|
||||||
|
use correct string in error message; from rustybsd at gmx.fr
|
||||||
|
|
||||||
20121217
|
20121217
|
||||||
- (dtucker) [Makefile.in] Add some scaffolding so that the new regress
|
- (dtucker) [Makefile.in] Add some scaffolding so that the new regress
|
||||||
tests will work with VPATH directories.
|
tests will work with VPATH directories.
|
||||||
|
5
auth.c
5
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.
|
* Copyright (c) 2000 Markus Friedl. All rights reserved.
|
||||||
*
|
*
|
||||||
@ -494,13 +494,12 @@ static int
|
|||||||
secure_filename(FILE *f, const char *file, struct passwd *pw,
|
secure_filename(FILE *f, const char *file, struct passwd *pw,
|
||||||
char *err, size_t errlen)
|
char *err, size_t errlen)
|
||||||
{
|
{
|
||||||
char buf[MAXPATHLEN];
|
|
||||||
struct stat st;
|
struct stat st;
|
||||||
|
|
||||||
/* check the open file to avoid races */
|
/* check the open file to avoid races */
|
||||||
if (fstat(fileno(f), &st) < 0) {
|
if (fstat(fileno(f), &st) < 0) {
|
||||||
snprintf(err, errlen, "cannot stat file %s: %s",
|
snprintf(err, errlen, "cannot stat file %s: %s",
|
||||||
buf, strerror(errno));
|
file, strerror(errno));
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
return auth_secure_path(file, &st, pw->pw_dir, pw->pw_uid, err, errlen);
|
return auth_secure_path(file, &st, pw->pw_dir, pw->pw_uid, err, errlen);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user