diff options
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", |