removed locking in NOTEDB::pwsafe3::_retrieve() which was senseless.

This commit is contained in:
git@daemon.de
2012-11-28 15:11:52 +01:00
parent afe46a308a
commit bc776e88bf
5 changed files with 8 additions and 10 deletions

View File

@@ -3,7 +3,7 @@
package NOTEDB::pwsafe3;
$NOTEDB::pwsafe3::VERSION = "1.01";
$NOTEDB::pwsafe3::VERSION = "1.02";
use strict;
use Data::Dumper;
@@ -310,9 +310,6 @@ sub _retrieve {
my $file = $this->{dbname};
if (-s $file) {
if ($this->filechanged() || $this->{unread}) {
my $fh = new FileHandle "<$this->{dbname}" or die "could not open $this->{dbname}\n";
flock $fh, LOCK_EX;
my %data;
if (! $key) {
$key = $this->_getpass();
@@ -341,9 +338,6 @@ sub _retrieve {
exit 1;
}
flock $fh, LOCK_UN;
$fh->close();
$this->{unread} = 0;
$this->{data} = \%data;
return %data;