diff options
Diffstat (limited to 'servconf.c')
-rw-r--r-- | servconf.c | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/servconf.c b/servconf.c index aa7d5b781..99cccbf21 100644 --- a/servconf.c +++ b/servconf.c | |||
@@ -12,7 +12,7 @@ | |||
12 | */ | 12 | */ |
13 | 13 | ||
14 | #include "includes.h" | 14 | #include "includes.h" |
15 | RCSID("$Id: servconf.c,v 1.6 1999/11/24 13:26:22 damien Exp $"); | 15 | RCSID("$Id: servconf.c,v 1.7 1999/11/25 00:54:59 damien Exp $"); |
16 | 16 | ||
17 | #include "ssh.h" | 17 | #include "ssh.h" |
18 | #include "servconf.h" | 18 | #include "servconf.h" |
@@ -212,8 +212,10 @@ static struct { | |||
212 | { NULL, 0 } | 212 | { NULL, 0 } |
213 | }; | 213 | }; |
214 | 214 | ||
215 | /* Returns the number of the token pointed to by cp of length len. | 215 | /* |
216 | Never returns if the token is not known. */ | 216 | * Returns the number of the token pointed to by cp of length len. Never |
217 | * returns if the token is not known. | ||
218 | */ | ||
217 | 219 | ||
218 | static ServerOpCodes | 220 | static ServerOpCodes |
219 | parse_token(const char *cp, const char *filename, | 221 | parse_token(const char *cp, const char *filename, |
@@ -222,7 +224,7 @@ parse_token(const char *cp, const char *filename, | |||
222 | unsigned int i; | 224 | unsigned int i; |
223 | 225 | ||
224 | for (i = 0; keywords[i].name; i++) | 226 | for (i = 0; keywords[i].name; i++) |
225 | if (strcmp(cp, keywords[i].name) == 0) | 227 | if (strcasecmp(cp, keywords[i].name) == 0) |
226 | return keywords[i].opcode; | 228 | return keywords[i].opcode; |
227 | 229 | ||
228 | fprintf(stderr, "%s: line %d: Bad configuration option: %s\n", | 230 | fprintf(stderr, "%s: line %d: Bad configuration option: %s\n", |
@@ -254,13 +256,6 @@ read_server_config(ServerOptions *options, const char *filename) | |||
254 | if (!*cp || *cp == '#') | 256 | if (!*cp || *cp == '#') |
255 | continue; | 257 | continue; |
256 | cp = strtok(cp, WHITESPACE); | 258 | cp = strtok(cp, WHITESPACE); |
257 | { | ||
258 | char *t = cp; | ||
259 | for (; *t != 0; t++) | ||
260 | if ('A' <= *t && *t <= 'Z') | ||
261 | *t = *t - 'A' + 'a'; /* tolower */ | ||
262 | |||
263 | } | ||
264 | opcode = parse_token(cp, filename, linenum); | 259 | opcode = parse_token(cp, filename, linenum); |
265 | switch (opcode) { | 260 | switch (opcode) { |
266 | case sBadOption: | 261 | case sBadOption: |