Uninitialized value on import
KeePass Command Line Interface
Brought to you by:
hightowe,
perlsaiyan
Hello, I use v3.8.1 on Debian testing (package version 3.8.1-1.1) and noticed a warning when trying to import a kdbx:
$ kpcli
kpcli:/> import ... ...
Provide the master password: ***
Use of uninitialized value $kpxc_exe in -e at /usr/bin/kpcli line 6832.
KeePassXC 2.7.1 or newer is required to import KDBX4 files.
That points to this line:
if (! (-f -e $kpxc_exe)) { return 0; }
I think changing it as follows could be a way to solve the warning (since a message about --kpxcexe is going to be printed anyway):
`perl
if (! (-f -e ($kpxc_exe // ''))) { return 0; }
Thanks for the bug report, but this issue was fixed in kpcli-4.0:
It would be nice if Debian would advance the kpcli version. I'm not sure why it has not upgraded in so long...
Thank you for your speedy response and, oh, my mistake reporting to upstream without checking the latest version, sorry. I mentioned this as a small motivation in an already existing bug report regarding version bumping in Debian testing: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1067146#10.