Subject: lib/10638: vacation doesn't do case insensitive mailalias comparisons
To: None <gnats-bugs@gnats.netbsd.org>
From: None <Thilo.Manske@HEH.Uni-Oldenburg.DE>
List: netbsd-bugs
Date: 07/20/2000 05:30:18
>Number: 10638
>Category: lib
>Synopsis: vacation doesn't do case insensitive mailalias comparisons
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: lib-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jul 20 05:31:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Thilo Manske
>Release: 1.5_Alpha from yesterday and older versions
>Organization:
Dies ist Thilos Unix Signature! Viel Spass damit.
>Environment:
System: NetBSD WintelKiller 1.5_ALPHA NetBSD 1.5_ALPHA (WintelKiller) #236: Sun Jul 9 02:01:41 MEST 2000 thilo@WintelKiller:/usr/src/sys/arch/i386/compile/WintelKiller i386
>Description:
If you have a forward like this:
\test,"|/usr/bin/vacation -a test.user test"
in test's homedirectory and in your aliases is:
test.user: test
then somone mailing to Test.User (or test.User or ...) would get no reply from vacation.
>How-To-Repeat:
See above
>Fix:
Looks like a small typo to me:
--- vacation.c.orig Sun Dec 20 13:18:40 1998
+++ vacation.c Thu Jul 20 14:23:45 2000
@@ -275,7 +275,7 @@
size_t len;
for (len = strlen(name); *str; ++str)
- if (*str == *name && !strncasecmp(name, str, len))
+ if (*str == *name || !strncasecmp(name, str, len))
return(1);
return(0);
}
>Release-Note:
>Audit-Trail:
>Unformatted: