# Applicable to: match-xsa
'xsadir=s' => \$o{'XSADIR'},
- 'xsalist=s' => \$o{'XSALIST'},
+ 'xsalist=s' => \$o{'XSALIST'},
'xsalistdir=s' => \$o{'XSALISTDIR'},
'not-smart' => \$o{'NOTSMART'},
if (!-d $o{'LOGDIR'}) {
mkdir $o{'LOGDIR'};
}
- $o{'OUTPUTFILE'} = $o{'LOGROOT'}."/".$o{'SHORT'}."-".$o{'OUTPUTFILE'};
+ if ( index($o{'OUTPUTFILE'},"./") == 0
+ || index($o{'OUTPUTFILE'},"../") == 0 ) {
+ $o{'OUTPUTFILE'} = $o{'LOGROOT'}."/".$o{'OUTPUTFILE'};
+ } else {
+ $o{'OUTPUTFILE'} = $o{'LOGROOT'}."/".$o{'SHORT'}."-".$o{'OUTPUTFILE'};
+ }
$o{'TMPDIR'} = $o{'LOGDIR'}."/tmp";
system("rm -rf ".$o{'TMPDIR'});
mkdir $o{'TMPDIR'};