Author: brueffer
Date: Tue Sep 13 20:33:27 2011
New Revision: 225535
URL: http://svn.freebsd.org/changeset/base/225535

Log:
  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

Modified:
  head/usr.bin/csup/auth.c

Modified: head/usr.bin/csup/auth.c
==============================================================================
--- head/usr.bin/csup/auth.c    Tue Sep 13 20:16:11 2011        (r225534)
+++ head/usr.bin/csup/auth.c    Tue Sep 13 20:33:27 2011        (r225535)
@@ -192,7 +192,7 @@ auth_lookuprecord(char *server, struct s
                        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));
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to