From 51ad0033d6c5632f251e74baf490194cfc47cd62 Mon Sep 17 00:00:00 2001 From: Christian Brueffer Date: Tue, 13 Sep 2011 20:33:27 +0000 Subject: [PATCH] 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 --- usr.bin/csup/auth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/csup/auth.c b/usr.bin/csup/auth.c index 7a84aca1843c..d690f9b47e87 100644 --- a/usr.bin/csup/auth.c +++ b/usr.bin/csup/auth.c @@ -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));