X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXMsg.pm;h=a43880a2987dc729d77bac8c29e199ce9d3ca82b;hb=b81c3de85161b74c53d32f2a0bccf31e17ffbf80;hp=dd6d178e1f523acd79a6f9e9f023c001b2a416c2;hpb=0165dda006167dda28c20bd415c91cf029da0edb;p=spider.git diff --git a/perl/DXMsg.pm b/perl/DXMsg.pm index dd6d178e..a43880a2 100644 --- a/perl/DXMsg.pm +++ b/perl/DXMsg.pm @@ -11,6 +11,7 @@ # # PC28 field 11 is the RR required flag # PC28 field 12 is a VIA routing (ie it is a node call) +# package DXMsg; @@ -75,7 +76,7 @@ sub alloc $self->{msgno} = shift; my $to = shift; # $to =~ s/-\d+$//o; - $self->{to} = $to; + $self->{to} = ($to eq $main::mycall) ? $main::myalias : $to; my $from = shift; $from =~ s/-\d+$//o; $self->{from} = uc $from; @@ -252,7 +253,7 @@ sub process $f[3] =~ s/^\///o; # remove the leading / $f[3] = lc $f[3]; # to lower case; dbg('msg', "incoming file $f[3]\n"); - last SWITCH if $f[3] =~ /^(perl|cmd|local|src|lib|include|sys|msg|connect)/; # prevent access to executables + $f[3] = 'packclus/' . $f[3] unless $f[3] =~ /^packclus\//o; # create any directories my @part = split /\//, $f[3];