anastasis

Credential backup and recovery protocol and service
Log | Files | Refs | Submodules | README | LICENSE

commit 6e08fb97072f34b5b4ed7c0554b317831741396c
parent b861e45bf034e088ea31795d35eb1a41f4475f7e
Author: Christian Grothoff <christian@grothoff.org>
Date:   Wed, 29 Jul 2026 16:52:40 +0200

exit non-zero when anastasis-reducer fails before starting

Diffstat:
Msrc/cli/anastasis-cli-redux.c | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/cli/anastasis-cli-redux.c b/src/cli/anastasis-cli-redux.c @@ -226,6 +226,7 @@ run (void *cls, { GNUNET_log (GNUNET_ERROR_TYPE_MESSAGE, "We cannot start backup and recovery at the same time!\n"); + global_ret = 1; GNUNET_SCHEDULER_shutdown (); return; } @@ -238,6 +239,7 @@ run (void *cls, { GNUNET_log (GNUNET_ERROR_TYPE_MESSAGE, "Failed to create an initial recovery state!\n"); + global_ret = 1; GNUNET_SCHEDULER_shutdown (); return; } @@ -256,6 +258,7 @@ run (void *cls, { GNUNET_log (GNUNET_ERROR_TYPE_MESSAGE, "Failed to create an initial backup state!\n"); + global_ret = 1; GNUNET_SCHEDULER_shutdown (); return; } @@ -276,6 +279,7 @@ run (void *cls, "You must specify an action as the first argument (or `-b' or `-r')\n"); GNUNET_log (GNUNET_ERROR_TYPE_MESSAGE, "Example: anastasis-reducer back\n"); + global_ret = 1; GNUNET_SCHEDULER_shutdown (); return; } @@ -292,6 +296,7 @@ run (void *cls, error.line, error.column, error.text); + global_ret = 1; GNUNET_SCHEDULER_shutdown (); return; } @@ -316,6 +321,7 @@ run (void *cls, error.line, error.column, error.text); + global_ret = 1; GNUNET_SCHEDULER_shutdown (); return; }