summaryrefslogtreecommitdiffstats
path: root/usr.bin/csup
diff options
context:
space:
mode:
authorbrueffer <brueffer@FreeBSD.org>2011-09-13 20:33:27 +0000
committerbrueffer <brueffer@FreeBSD.org>2011-09-13 20:33:27 +0000
commita77e217ce23c4d832a645ca1ea2d6db5938187b9 (patch)
tree384b7a1c88cdb345807a829a30cca1d5dc07a41a /usr.bin/csup
parent661e793b80f2b1dd7136771f61c85d7038f75b3b (diff)
downloadFreeBSD-src-a77e217ce23c4d832a645ca1ea2d6db5938187b9.zip
FreeBSD-src-a77e217ce23c4d832a645ca1ea2d6db5938187b9.tar.gz
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
Diffstat (limited to 'usr.bin/csup')
-rw-r--r--usr.bin/csup/auth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/csup/auth.c b/usr.bin/csup/auth.c
index 7a84aca..d690f9b 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));
OpenPOWER on IntegriCloud