dovecot-1.0: "section changed at line" was always reporting the ...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Dec 3 11:45:24 EET 2007
details: http://hg.dovecot.org/dovecot-1.0/rev/d8c37fc98a07
changeset: 5480:d8c37fc98a07
user: Timo Sirainen <tss at iki.fi>
date: Mon Dec 03 11:45:20 2007 +0200
description:
"section changed at line" was always reporting the current line instead of
the previous section change line.
diffstat:
1 file changed, 5 insertions(+), 4 deletions(-)
src/lib-settings/settings.c | 9 +++++----
diffs (26 lines):
diff -r a9f71009ad03 -r d8c37fc98a07 src/lib-settings/settings.c
--- a/src/lib-settings/settings.c Sun Dec 02 15:49:09 2007 +0200
+++ b/src/lib-settings/settings.c Mon Dec 03 11:45:20 2007 +0200
@@ -184,7 +184,6 @@ bool settings_read(const char *path, con
if (*line != '{')
errormsg = "Expecting '='";
else {
- last_section_line = linenum;
sections++;
if (next_section != NULL &&
strcmp(next_section, name) == 0) {
@@ -212,9 +211,11 @@ bool settings_read(const char *path, con
last_section_line != 0) {
errormsg = t_strdup_printf(
SECTION_ERRORMSG,
- errormsg, linenum);
- }
- }
+ errormsg,
+ last_section_line);
+ }
+ }
+ last_section_line = linenum;
}
} else {
/* c) */
More information about the dovecot-cvs
mailing list