summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpp <pp@455248ca-bdda-0310-9134-f4ebb693071a>2006-04-13 21:57:23 +0000
committerpp <pp@455248ca-bdda-0310-9134-f4ebb693071a>2006-04-13 21:57:23 +0000
commitf11d11f4c172a0c0acbd10a4d32449b6a3311834 (patch)
tree1b7af76fba6d8aa37a22a02e72545ee4f6432c58
parent7376a3d5527ddeb3fa2c39cb4a3cdcef5512c741 (diff)
- fixed a problem with not restoring file position when duplicate chunk headers were found,
thus causing unneeded rescanning of already scanned area git-svn-id: https://siedziba.pl:790/svn/repos/dbxrecover@230 455248ca-bdda-0310-9134-f4ebb693071a
-rwxr-xr-xdbxrecover2
1 files changed, 2 insertions, 0 deletions
diff --git a/dbxrecover b/dbxrecover
index c6915d2..bda8fca 100755
--- a/dbxrecover
+++ b/dbxrecover
@@ -215,8 +215,10 @@ use strict;
my $self = shift;
my $datasize = unpack("V", substr($self->{header}, 8, 4));
my $data;
+ my $pos = $self->{file}->getpos;
$self->{file}->setpos($self->{filepos});
$self->{file}->read($data, $datasize);
+ $self->{file}->setpos($pos);
return $data;
}