diff options
Diffstat (limited to 'restore.pl')
-rwxr-xr-x | restore.pl | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -73,7 +73,7 @@ for my $filename (@ARGV) { my $id = <STDIN>; chomp $id; chdir "/"; - next unless (exists ($filelist[$id])); + next unless ($id =~ /^\d+$/ && exists ($filelist[$id])); remove_tree $file if -d $file; # need mtime preservation #rcopy $filelist[$id]->{path}, $file; |