From 98e631451f34cff6713b51d0291a3ab626786ba8 Mon Sep 17 00:00:00 2001 From: Franck Joncourt Date: Mon, 20 May 2013 21:58:18 +0200 Subject: [PATCH] Fixed stanza name in log message. We display the stanza we were looking for, not the current one. --- client/config_init.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/client/config_init.c b/client/config_init.c index 619d4f88..23ff3972 100644 --- a/client/config_init.c +++ b/client/config_init.c @@ -1254,13 +1254,15 @@ update_rc(fko_cli_options_t *options, uint32_t args_bitmask) { /* but the stanza has been found, We update it now. */ if (stanza_found == 1) - log_msg(LOG_VERBOSITY_DEBUG, "update_rc() : Updating %s stanza", curr_stanza); + log_msg(LOG_VERBOSITY_DEBUG, "update_rc() : Updating %s stanza", + options->use_rc_stanza); /* otherwise we append the new settings to the file */ else { fprintf(rc_update, "\n"); - log_msg(LOG_VERBOSITY_DEBUG, "update_rc() : Inserting new %s stanza", curr_stanza); + log_msg(LOG_VERBOSITY_DEBUG, "update_rc() : Inserting new %s stanza", + options->use_rc_stanza); fprintf(rc_update, RC_SECTION_TEMPLATE, options->use_rc_stanza); }