diff options
author | brueffer <brueffer@FreeBSD.org> | 2011-09-13 20:33:27 +0000 |
---|---|---|
committer | brueffer <brueffer@FreeBSD.org> | 2011-09-13 20:33:27 +0000 |
commit | a77e217ce23c4d832a645ca1ea2d6db5938187b9 (patch) | |
tree | 384b7a1c88cdb345807a829a30cca1d5dc07a41a | |
parent | 661e793b80f2b1dd7136771f61c85d7038f75b3b (diff) | |
download | FreeBSD-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
-rw-r--r-- | usr.bin/csup/auth.c | 2 |
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)); |