From faf156f99adf3b27eb78502b44626bf51deee7c5 Mon Sep 17 00:00:00 2001 From: Alexander Firbas Date: Tue, 17 Aug 2021 22:24:08 +0200 Subject: [PATCH] implement #2561 for kdb sget --- src/tools/kdb/sget.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tools/kdb/sget.cpp b/src/tools/kdb/sget.cpp index abdfdb734b1..755b7ed3996 100644 --- a/src/tools/kdb/sget.cpp +++ b/src/tools/kdb/sget.cpp @@ -31,8 +31,9 @@ int ShellGetCommand::execute (Cmdline const & cl) kdb::KDB kdb; KeySet conf; Key x = cl.createKey (0); + Key parentKey = cl.getParentKey (x); - kdb.get (conf, x); + kdb.get (conf, parentKey); Key k = conf.lookup (x); if (!k)