From: minima Date: Tue, 8 Jan 2002 11:34:05 +0000 (+0000) Subject: put some basic protection into save and make the default directory packclus X-Git-Tag: R_1_50~108 X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=6ccf38d2c9db51eddfc0617f03b25b527b241001;p=spider.git put some basic protection into save and make the default directory packclus --- diff --git a/cmd/save.pl b/cmd/save.pl index 8d7ece38..9d492445 100644 --- a/cmd/save.pl +++ b/cmd/save.pl @@ -25,6 +25,9 @@ if ($line =~ /-a/) { # append to the file } my ($fn, $rest) = split /\s+/, $line, 2; +$fn = "$main::root/packclus/$fn" unless $fn =~ m|^/|; +$fn =~ s/..//g; +$fn =~ m|/+|/|g; $fn .= '_' . cldate if $date_req; $fn .= '_' . ztime if $time_req; $fn =~ s/\s+//g;