summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xrestore.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/restore.pl b/restore.pl
index 3d00026..1ca5f68 100755
--- a/restore.pl
+++ b/restore.pl
@@ -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;