You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2004/11/27 00:45:53 UTC

[Bug 4001] make test gets unitialized variable errors in ArchiveIterator.pm when run in Windows if no $HOME defined

http://bugzilla.spamassassin.org/show_bug.cgi?id=4001





------- Additional Comments From felicity@kluge.net  2004-11-26 15:45 -------
Subject: Re:  New: make test gets unitialized variable errors in ArchiveIterator.pm when run in Windows if no $HOME defined

On Fri, Nov 26, 2004 at 03:41:14PM -0800, bugzilla-daemon@bugzilla.spamassassin.org wrote:
> The ~/ replacement code in ArchiveIterator.pm uses the value of $ENV{'HOME'}
> which does not have to exist in Windows.

Isn't this just:

my $home = $ENV{'HOME'} || (Mail::SpamAssassin::Util::portable_getpwuid($>))[7];

Then use $home instead of $ENV{'HOME'}.

BTW: there are other places in the code where we use $ENV{'HOME'}.  Perhaps we
need a get_home() function which returns the above scalar value.





------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.