Menu

#52 kpcli 4 bug when a kdbx has no passwd

v1.0 (example)
closed-fixed
None
5
2024-01-01
2024-01-01
No

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.

Discussion

  • Lester Hightower

    • status: accepted --> closed-fixed
     
  • Lester Hightower

    Fixed and checked into the development code on the SVN repo's trunk.

    Will be part of release 4.1.

     

Log in to post a comment.

MongoDB Logo MongoDB