diff options
author | Damien Miller <djm@mindrot.org> | 2010-12-01 12:01:51 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2010-12-01 12:01:51 +1100 |
commit | 6a740e7b92c8dba96e81ad3979849e7abcd26829 (patch) | |
tree | 7f56e9bd1cf4a93cfc8b53f6deac71e167921e55 /auth.c | |
parent | a232792783655659395f445c0f265d4f9444bb7c (diff) |
- 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
Diffstat (limited to 'auth.c')
-rw-r--r-- | auth.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: auth.c,v 1.89 2010/08/04 05:42:47 djm Exp $ */ | 1 | /* $OpenBSD: auth.c,v 1.90 2010/11/23 02:35:50 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2000 Markus Friedl. All rights reserved. | 3 | * Copyright (c) 2000 Markus Friedl. All rights reserved. |
4 | * | 4 | * |
@@ -518,7 +518,7 @@ auth_openfile(const char *file, struct passwd *pw, int strict_modes, | |||
518 | close(fd); | 518 | close(fd); |
519 | return NULL; | 519 | return NULL; |
520 | } | 520 | } |
521 | if (options.strict_modes && | 521 | if (strict_modes && |
522 | secure_filename(f, file, pw, line, sizeof(line)) != 0) { | 522 | secure_filename(f, file, pw, line, sizeof(line)) != 0) { |
523 | fclose(f); | 523 | fclose(f); |
524 | logit("Authentication refused: %s", line); | 524 | logit("Authentication refused: %s", line); |