From nobody@FreeBSD.ORG  Thu Nov  2 03:44:30 2000
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id C49C437B4C5; Thu,  2 Nov 2000 03:44:30 -0800 (PST)
Message-Id: <20001102114430.C49C437B4C5@hub.freebsd.org>
Date: Thu,  2 Nov 2000 03:44:30 -0800 (PST)
From: gaute@knpqwest.no
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@FreeBSD.org
Subject: Case sensitive address comparison in vacation
X-Send-Pr-Version: www-1.0

>Number:         22537
>Category:       misc
>Synopsis:       Case sensitive address comparison in vacation
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gshapiro
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 02 03:50:01 PST 2000
>Closed-Date:    Thu Nov 2 09:22:29 PST 2000
>Last-Modified:  Thu Nov 02 09:23:19 PST 2000
>Originator:     Gaute Nessan
>Release:        4.1-STABLE
>Organization:
KPNQwest Norway
>Environment:
FreeBSD nitro.i.eunet.no 4.1-STABLE FreeBSD 4.1-STABLE #0: Sat Sep  9 19:14:07 CEST 2000     root@nitro.i.eunet.no:/d3/obj/usr/src/sys/GAUTE  i386

>Description:
Function nsearch in /usr/src/usr.bin/vacation/vacation.c
uses case sensitive comparison of first character in
mail address.

>How-To-Repeat:


>Fix:
*** vacation.c  Sat Aug 28 03:07:19 1999
--- /tmp/vacation.c     Thu Nov  2 11:28:53 2000
***************
*** 304,308 ****
  
        for (len = strlen(name); *str; ++str)
!               if (*str == *name &&
                    !strncasecmp(name, str, len) &&
                    isdelim((unsigned char)str[len]))
--- 304,308 ----
  
        for (len = strlen(name); *str; ++str)
!               if (tolower(*str) == tolower(*name) &&
                    !strncasecmp(name, str, len) &&
                    isdelim((unsigned char)str[len]))


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->gshapiro 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Thu Nov 2 03:51:47 PST 2000 
Responsible-Changed-Why:  
Gregory gets this as punishment for failing to show me 
San Francisco's brighter side. :-) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=22537 
State-Changed-From-To: open->closed 
State-Changed-By: gshapiro 
State-Changed-When: Thu Nov 2 09:22:29 PST 2000 
State-Changed-Why:  
We no longer use /usr/src/usr.bin/vacation/vacation.c.  both CURRENT and 
STABLE are now using the vacation that comes with the open source version 
of sendmail.  This version does not have this bug. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=22537 
>Unformatted:
