kpcli 4 bug when a kdbx has no passwd
KeePass Command Line Interface
Brought to you by:
hightowe,
perlsaiyan
This bug was reported to Lester via email, by Landry Breuil of the OpenBSD project.
Landry also submitted this patch:
--- /usr/local/bin/kpcli Sat Dec 30 08:20:37 2023
+++ kpcli Mon Jan 1 10:24:50 2024
@@ -7495,7 +7495,10 @@
}
sub composite_master_pass_FileKDBX($$) {
my ($pass, $key_file) = @_;
- my @components = ( File::KDBX::Key->new({ password => $pass }) );
+ my @components;
+ if (defined $pass and length($pass)) {
+ push @components, File::KDBX::Key->new({ password => $pass });
+ }
if (defined $key_file and length($key_file) and -f $key_file) {
push @components, File::KDBX::Key->new({ file => $key_file });
}
This SourceForge bug report was created to record the issue and the fix, and to keep an issue open until Lester has time to apply the patch to the kpcli development branch.
Fixed and checked into the development code on the SVN repo's trunk.
Will be part of release 4.1.