From 36c1fe69017263df799a158bb774115bc57e97d5 Mon Sep 17 00:00:00 2001 From: Ben Kibbey Date: Tue, 4 Mar 2008 22:06:01 -0500 Subject: [PATCH] Don't set the iterations configuration parameter when the file is a new one in open_command_finalize(). --- src/commands.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/commands.c b/src/commands.c index 755485ff..4ba0215d 100644 --- a/src/commands.c +++ b/src/commands.c @@ -445,7 +445,8 @@ done: client->state = STATE_OPEN; } - if (!rc && iter != get_key_file_integer(client->filename, "iterations")) { + if (!rc && client->new == FALSE && + iter != get_key_file_integer(client->filename, "iterations")) { g_key_file_set_integer(keyfileh, client->filename, "iterations", iter); send_status_all(STATUS_CONFIG); } -- 2.11.4.GIT