From 6ccf38d2c9db51eddfc0617f03b25b527b241001 Mon Sep 17 00:00:00 2001 From: minima Date: Tue, 8 Jan 2002 11:34:05 +0000 Subject: [PATCH] put some basic protection into save and make the default directory packclus --- cmd/save.pl | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.34.1