summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2010-03-22 05:52:26 +1100
committerDamien Miller <djm@mindrot.org>2010-03-22 05:52:26 +1100
commitc4cb47bc53434612c41333695b15350724d60d6a (patch)
tree4fb604225158243c157301c9a8a54d1c4e22db87
parente513a911952901dc8bcaa76fcfba7bc45f23daae (diff)
- djm@cvs.openbsd.org 2010/03/12 01:06:25
[servconf.c] unbreak AuthorizedKeys option with a $HOME-relative path; reported by vinschen AT redhat.com, ok dtucker@
-rw-r--r--ChangeLog4
-rw-r--r--servconf.c14
2 files changed, 16 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index ac93d23c9..3112f6457 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -11,6 +11,10 @@
11 [auth2-pubkey.c] 11 [auth2-pubkey.c]
12 correct certificate logging and make it more consistent between 12 correct certificate logging and make it more consistent between
13 authorized_keys and TrustedCAKeys; ok markus@ 13 authorized_keys and TrustedCAKeys; ok markus@
14 - djm@cvs.openbsd.org 2010/03/12 01:06:25
15 [servconf.c]
16 unbreak AuthorizedKeys option with a $HOME-relative path; reported by
17 vinschen AT redhat.com, ok dtucker@
14 18
1520100314 1920100314
16 - (djm) [ssh-pkcs11-helper.c] Move #ifdef to after #defines to fix 20 - (djm) [ssh-pkcs11-helper.c] Move #ifdef to after #defines to fix
diff --git a/servconf.c b/servconf.c
index f9e2f2dfd..e09e0f1c8 100644
--- a/servconf.c
+++ b/servconf.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: servconf.c,v 1.204 2010/03/04 10:36:03 djm Exp $ */ 1/* $OpenBSD: servconf.c,v 1.205 2010/03/12 01:06:25 djm Exp $ */
2/* 2/*
3 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 3 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
4 * All rights reserved 4 * All rights reserved
@@ -1223,7 +1223,17 @@ process_server_config_line(ServerOptions *options, char *line,
1223 charptr = (opcode == sAuthorizedKeysFile) ? 1223 charptr = (opcode == sAuthorizedKeysFile) ?
1224 &options->authorized_keys_file : 1224 &options->authorized_keys_file :
1225 &options->authorized_keys_file2; 1225 &options->authorized_keys_file2;
1226 goto parse_filename; 1226 arg = strdelim(&cp);
1227 if (!arg || *arg == '\0')
1228 fatal("%s line %d: missing file name.",
1229 filename, linenum);
1230 if (*activep && *charptr == NULL) {
1231 *charptr = derelativise_path(arg);
1232 /* increase optional counter */
1233 if (intptr != NULL)
1234 *intptr = *intptr + 1;
1235 }
1236 break;
1227 1237
1228 case sClientAliveInterval: 1238 case sClientAliveInterval:
1229 intptr = &options->client_alive_interval; 1239 intptr = &options->client_alive_interval;