- djm@cvs.openbsd.org 2010/11/23 02:35:50

[auth.c]
     use strict_modes already passed as function argument over referencing
     global options.strict_modes
This commit is contained in:
Damien Miller 2010-12-01 12:01:51 +11:00
parent a232792783
commit 6a740e7b92
2 changed files with 6 additions and 2 deletions

View File

@ -12,6 +12,10 @@
Refactor internals of private key loading and saving to work on memory Refactor internals of private key loading and saving to work on memory
buffers rather than directly on files. This will make a few things buffers rather than directly on files. This will make a few things
easier to do in the future; ok markus@ easier to do in the future; ok markus@
- djm@cvs.openbsd.org 2010/11/23 02:35:50
[auth.c]
use strict_modes already passed as function argument over referencing
global options.strict_modes
20101124 20101124
- (dtucker) [platform.c session.c] Move the getluid call out of session.c and - (dtucker) [platform.c session.c] Move the getluid call out of session.c and

4
auth.c
View File

@ -1,4 +1,4 @@
/* $OpenBSD: auth.c,v 1.89 2010/08/04 05:42:47 djm Exp $ */ /* $OpenBSD: auth.c,v 1.90 2010/11/23 02:35:50 djm Exp $ */
/* /*
* Copyright (c) 2000 Markus Friedl. All rights reserved. * Copyright (c) 2000 Markus Friedl. All rights reserved.
* *
@ -518,7 +518,7 @@ auth_openfile(const char *file, struct passwd *pw, int strict_modes,
close(fd); close(fd);
return NULL; return NULL;
} }
if (options.strict_modes && if (strict_modes &&
secure_filename(f, file, pw, line, sizeof(line)) != 0) { secure_filename(f, file, pw, line, sizeof(line)) != 0) {
fclose(f); fclose(f);
logit("Authentication refused: %s", line); logit("Authentication refused: %s", line);