From 99ff94c543da05206c13a725eddf4848607d2563 Mon Sep 17 00:00:00 2001 From: Petr Hanzlik Date: Mon, 13 Jul 2026 13:15:16 +0200 Subject: [PATCH] cli BUGFIX fix context creation in store_config --- cli/configuration.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cli/configuration.c b/cli/configuration.c index 6aac66ae..98e6cf61 100644 --- a/cli/configuration.c +++ b/cli/configuration.c @@ -329,7 +329,6 @@ load_config(void) config_file = NULL; goto cleanup; } else if (eaccess(config_file, F_OK) && (errno == ENOENT)) { - ERROR(__func__, "No saved configuration."); goto cleanup; } @@ -495,7 +494,7 @@ store_config(void) struct lys_module *cli = NULL; const char *str; - if (ly_ctx_new(NULL, 0, &ctx)) { + if (ly_ctx_new(ly_yang_module_dir(), 0, &ctx)) { ERROR(__func__, "Failed to create context."); ERROR(__func__, "Unable to store configuration due to the previous error."); goto cleanup;