]> andersk Git - openssh.git/blobdiff - servconf.c
- More reformatting merged from OpenBSD CVS
[openssh.git] / servconf.c
index d0bdc1a84930f39c01523e299c8a41dbb579d54c..71f9cac5b2eba0a3be50aa45c7b824b0af73629e 100644 (file)
@@ -212,8 +212,10 @@ static struct {
        { NULL, 0 }
 };
 
-/* Returns the number of the token pointed to by cp of length len.
-   Never returns if the token is not known. */
+/*
+ * Returns the number of the token pointed to by cp of length len. Never
+ * returns if the token is not known.
+ */
 
 static ServerOpCodes 
 parse_token(const char *cp, const char *filename,
@@ -222,7 +224,7 @@ parse_token(const char *cp, const char *filename,
        unsigned int i;
 
        for (i = 0; keywords[i].name; i++)
-               if (strcmp(cp, keywords[i].name) == 0)
+               if (strcasecmp(cp, keywords[i].name) == 0)
                        return keywords[i].opcode;
 
        fprintf(stderr, "%s: line %d: Bad configuration option: %s\n",
@@ -254,13 +256,6 @@ read_server_config(ServerOptions *options, const char *filename)
                if (!*cp || *cp == '#')
                        continue;
                cp = strtok(cp, WHITESPACE);
-               {
-                       char *t = cp;
-                       for (; *t != 0; t++)
-                               if ('A' <= *t && *t <= 'Z')
-                                       *t = *t - 'A' + 'a';    /* tolower */
-
-               }
                opcode = parse_token(cp, filename, linenum);
                switch (opcode) {
                case sBadOption:
This page took 0.041304 seconds and 4 git commands to generate.