Great Circle Associates Majordomo-Workers
(November 1996)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: another bug fix to 1.94 majordomo.pl
From: Walt Haas <haas @ xmission . com>
Date: Wed, 13 Nov 1996 20:05:13 -0700
To: majordomo-workers @ greatcircle . com

The problem was that any address beginning with a "/" was treated as HOSTILE,
so an address like "/G=Lena/S=Paulsen@mhs-opic.attmail.com" could never 
subscribe.  The reason turned out to be the line that said 

	local(@components) = split( /\//, $_);

The split function caused $components[0] to always be the null string if
the first character of the address was "/".  Thus when the string
/$components[0] was tested, it evaluated to "/", the filesystem root, and
I guess writing to that would be pretty hostile :-)

The fix was to break up $addr properly.  Here's the patch:

	511c511
	<         local(@components) = split( /\//, $_);
	---
	>         local(@components) = ($_ =~ /([\/\@]?[^\/\@]+)/g);

-- Walt
-------
"Change is necessary.  Change is good."  - Lonnie Burton
"If you don't like those ideas, I got others."  - Marshall McLuhan




Follow-Ups:
Indexed By Date Previous: Re: Restricted postings (revisited)
From: Jason L Tibbitts III <tibbs@hpc.uh.edu>
Next: Re: Before I start hacking majordomo...
From: Jason L Tibbitts III <tibbs@hpc.uh.edu>
Indexed By Thread Previous: Boing! The Majordomo List Cleaner
From: Tom Mornini <tmornini@infomania.com>
Next: Re: another bug fix to 1.94 majordomo.pl
From: Dave Wolfe <dwolfe@risc.sps.mot.com>

Google
 
Search Internet Search www.greatcircle.com