]> andersk Git - openssh.git/blobdiff - servconf.c
- (dtucker) [sftp.c] ifdef out the sftp completion bits for platforms that
[openssh.git] / servconf.c
index 729f23bade344f0b7a7f1937d8a9fd2b42b30f70..2cdc480e607f41daa86cb8cd60203093c9d6c1c0 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: servconf.c,v 1.197 2009/10/28 16:38:18 reyk Exp $ */
+/* $OpenBSD: servconf.c,v 1.199 2009/12/29 16:38:41 stevesk Exp $ */
 /*
  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
  *                    All rights reserved
@@ -424,7 +424,7 @@ static struct {
        { "match", sMatch, SSHCFG_ALL },
        { "permitopen", sPermitOpen, SSHCFG_ALL },
        { "forcecommand", sForceCommand, SSHCFG_ALL },
-       { "rdomain", sRDomain, SSHCFG_GLOBAL },
+       { "routingdomain", sRDomain, SSHCFG_GLOBAL },
        { "chrootdirectory", sChrootDirectory, SSHCFG_ALL },
        { NULL, sBadOption, 0 }
 };
@@ -1298,7 +1298,16 @@ process_server_config_line(ServerOptions *options, char *line,
 
        case sRDomain:
                intptr = &options->rdomain;
-               goto parse_int;
+               arg = strdelim(&cp);
+               if (!arg || *arg == '\0')
+                       fatal("%s line %d: missing rdomain value.",
+                           filename, linenum);
+               if ((value = a2rdomain(arg)) == -1)
+                       fatal("%s line %d: invalid rdomain value.",
+                           filename, linenum);
+               if (*intptr == -1)
+                       *intptr = value;
+               break;
 
        case sDeprecated:
                logit("%s line %d: Deprecated option %s",
This page took 1.561719 seconds and 4 git commands to generate.