Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Jul 2011 20:13:22 -0500 (CDT)
From:      Stephen Montgomery-Smith <stephen@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/158652: .csup/auth isn't read if the server name is not all lowercase.
Message-ID:  <201107050113.p651DMfQ092845@wilberforce.math.missouri.edu>
Resent-Message-ID: <201107050120.p651K9ZQ024519@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         158652
>Category:       bin
>Synopsis:       .csup/auth isn't read if the server name is not all lowercase.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 05 01:20:09 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Stephen Montgomery-Smith
>Release:        FreeBSD 8.2-STABLE i386
>Organization:
>Environment:
FreeBSD Current

	
>Description:
If you have something like "FreeBSD" in your .csup/auth file, then csup will claim that your auth file is faulty:

Parsing supfile "/usr/home/library/ctm/FreeBSD/CVSup_file"
Connecting to xxxxxxxx.freebsd.org
Cannot connect to ::::: Protocol not supported
Connected to ??.??.??.??
Server software version: SNAP_16_1h
MD5 authentication started
Unknown server "xxxxxxxx.freebsd.org". Fix your /home/library/.csup/auth

>How-To-Repeat:
	
>Fix:

	

--- csup/auth.c-old	2011-07-04 19:06:40.000000000 -0500
+++ csup/auth.c	2011-07-04 19:07:46.000000000 -0500
@@ -192,7 +192,7 @@
 			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));

>Release-Note:
>Audit-Trail:
>Unformatted:



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