Fix csup to allow case insensitive server names in the auth file,

just as advertised in the manpage.

PR:		158652
Submitted by:	stephen
Approved by:	re (kib)
MFC after:	1 week
This commit is contained in:
Christian Brueffer 2011-09-13 20:33:27 +00:00
parent e50e74d8aa
commit 51ad0033d6

View File

@ -192,7 +192,7 @@ auth_lookuprecord(char *server, struct srvrecord *auth)
goto close;
}
/* Skip the rest of this line, it isn't what we are looking for. */
if (strcmp(auth->server, server) != 0)
if (strcasecmp(auth->server, server) != 0)
continue;
error = auth_parsetoken(&line, auth->client,
sizeof(auth->client));