checking to start with a capital letter. This appears to be more
consistent with the error message conventions used inside Heimdal.
+ Change the DB_File::Lock calling method in heimdal-history to work
+ properly with the (buggy) CPAN version of DB_File::Lock, instead of
+ relying on Debian's patched version. Thanks to Bernt Jernberg for the
+ report.
+
krb5-strength 3.0 (2014-03-25)
The krb5-strength plugin and heimdal-strength program now support a
{
my %history;
my $mode = O_CREAT | O_RDWR;
- tie(%history, 'DB_File::Lock', [$path, $mode, oct(600)], 'write')
+ tie(%history, 'DB_File::Lock', $path, $mode, oct(600), $DB_HASH,
+ 'write')
or die "$0: cannot open $path: $!\n";
$history_json = $history{$principal};
}
# Open and lock the database for write.
my %history;
my $mode = O_CREAT | O_RDWR;
- tie(%history, 'DB_File::Lock', [$path, $mode, oct(600)], 'write')
+ tie(%history, 'DB_File::Lock', $path, $mode, oct(600), $DB_HASH, 'write')
or die "$0: cannot open $path: $!\n";
# Read the existing history. If the existing history is corrupt, treat
# Open and lock the database for write.
my %lengths;
my $mode = O_CREAT | O_RDWR;
- tie(%lengths, 'DB_File::Lock', [$path, $mode, oct(600)], 'write')
+ tie(%lengths, 'DB_File::Lock', $path, $mode, oct(600), $DB_HASH, 'write')
or return;
# Write each of the hashes.