diff options
author | Damien Miller <djm@mindrot.org> | 2008-02-10 22:48:55 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2008-02-10 22:48:55 +1100 |
commit | 54e3773ccb55500087fc722c79869679700dc318 (patch) | |
tree | 0cc1094b6c810d313c3d5ad237bd9ce992632487 /servconf.c | |
parent | cdb6e65175fab4346be5b74b2527e4f28437e5fe (diff) |
- djm@cvs.openbsd.org 2008/02/10 10:54:29
[servconf.c session.c]
delay ~ expansion for ChrootDirectory so it expands to the logged-in user's
home, rather than the user who starts sshd (probably root)
Diffstat (limited to 'servconf.c')
-rw-r--r-- | servconf.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/servconf.c b/servconf.c index d38d0bfb1..9add96ca1 100644 --- a/servconf.c +++ b/servconf.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: servconf.c,v 1.176 2008/02/08 23:24:08 djm Exp $ */ | 1 | /* $OpenBSD: servconf.c,v 1.177 2008/02/10 10:54:28 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 |
@@ -1260,7 +1260,14 @@ parse_flag: | |||
1260 | 1260 | ||
1261 | case sChrootDirectory: | 1261 | case sChrootDirectory: |
1262 | charptr = &options->chroot_directory; | 1262 | charptr = &options->chroot_directory; |
1263 | goto parse_filename; | 1263 | |
1264 | arg = strdelim(&cp); | ||
1265 | if (!arg || *arg == '\0') | ||
1266 | fatal("%s line %d: missing file name.", | ||
1267 | filename, linenum); | ||
1268 | if (*activep && *charptr == NULL) | ||
1269 | *charptr = xstrdup(arg); | ||
1270 | break; | ||
1264 | 1271 | ||
1265 | case sDeprecated: | 1272 | case sDeprecated: |
1266 | logit("%s line %d: Deprecated option %s", | 1273 | logit("%s line %d: Deprecated option %s", |