Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Sep 2011 20:33:27 +0000 (UTC)
From:      Christian Brueffer <brueffer@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r225535 - head/usr.bin/csup
Message-ID:  <201109132033.p8DKXRYn095399@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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));



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201109132033.p8DKXRYn095399>