mirror of
https://codeberg.org/scip/note.git
synced 2025-12-17 12:41:10 +01:00
removed locking in NOTEDB::pwsafe3::_retrieve() which was senseless.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user