Fixed issue when trying to save options for a new stanza.
authorFranck Joncourt <franck@debian.org>
Wed, 20 Mar 2013 20:38:52 +0000 (21:38 +0100)
committerFranck Joncourt <franck@debian.org>
Wed, 20 Mar 2013 20:38:52 +0000 (21:38 +0100)
client/config_init.c

index 9addd73..297454f 100755 (executable)
@@ -1146,7 +1146,9 @@ validate_options(fko_cli_options_t *options)
         && !options->show_last_command
         && !options->run_last_command)
     {
-        if(options->use_rc_stanza[0] != 0x0 && options->got_named_stanza == 0)
+        if ( (options->use_rc_stanza[0] != 0x0)
+            && (options->got_named_stanza == 0)
+            && (options->save_rc_stanza == 0) )
         {
             fprintf(stderr, "Named configuration stanza: [%s] was not found.\n",
                 options->use_rc_stanza);