diff options
author | Darren Tucker <dtucker@zip.com.au> | 2010-01-13 22:44:29 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2010-01-13 22:44:29 +1100 |
commit | 88b6fb2b55a5c8bb9aeadec185991c5bfae780c0 (patch) | |
tree | 85356ec63439554a143a9e2116f8af61d0e216d5 /sshd.c | |
parent | 2901e2daebe3a0890209f31d05d5bb9338cbed5b (diff) |
- djm@cvs.openbsd.org 2010/01/13 03:48:13
[servconf.c servconf.h sshd.c]
avoid run-time failures when specifying hostkeys via a relative
path by prepending the cwd in these cases; bz#1290; ok dtucker@
Diffstat (limited to 'sshd.c')
-rw-r--r-- | sshd.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sshd.c,v 1.370 2010/01/09 23:04:13 dtucker Exp $ */ | 1 | /* $OpenBSD: sshd.c,v 1.371 2010/01/13 03:48:13 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -1351,7 +1351,8 @@ main(int ac, char **av) | |||
1351 | fprintf(stderr, "too many host keys.\n"); | 1351 | fprintf(stderr, "too many host keys.\n"); |
1352 | exit(1); | 1352 | exit(1); |
1353 | } | 1353 | } |
1354 | options.host_key_files[options.num_host_key_files++] = optarg; | 1354 | options.host_key_files[options.num_host_key_files++] = |
1355 | derelativise_path(optarg); | ||
1355 | break; | 1356 | break; |
1356 | case 't': | 1357 | case 't': |
1357 | test_flag = 1; | 1358 | test_flag = 1; |