Henning Schmiedehausen <[EMAIL PROTECTED]> writes:
> I got the following messages in my logfile (razor in SpamAssassin,
> running under mimedefang):
>
> Dec 6 14:50:02 babsi mimedefang-multiplexor: Slave 0 stderr: Use of
> uninitialized value in split at /usr/lib/perl5/5.6.1/File/Spec/Unix.pm
> line 189.
> The reason for this is the deletion of the $ENV{PATH} value from the
> environment. I do consider this a perl bug (which is present up to
> 5.8.0, not only 5.6.1) that the sub path() in File::Spec::Unix cannot
> cope with a non existing $ENV{'PATH'} value, but this doesn't help us
> much.
>
> This patch [to razor-agents-2.22/lib/Razor2/Client/Agent.pm] fixes it:
I patched it in perl-5.8.0, and submitted the one-line patch to the perl
authors; I have no idea whether it will be picked up. My patch is:
--- lib/File/Spec/Unix.pm.original 2002-07-09 12:52:53.000000000 -0400
+++ lib/File/Spec/Unix.pm 2002-11-25 11:11:42.000000000 -0500
@@ -213,6 +213,7 @@
=cut
sub path {
+ return () unless $ENV{PATH};
my @path = split(':', $ENV{PATH});
foreach (@path) { $_ = '.' if $_ eq '' }
return @path;
Anne.
--
Ms. Anne Bennett, Senior Analyst, IITS, Concordia University, Montreal H3G 1M8
[EMAIL PROTECTED] +1 514 848-7606
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Razor-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/razor-users