[dovecot-cvs] dovecot/src/master main.c,1.88,1.89
cras at dovecot.org
cras at dovecot.org
Wed Jul 5 22:52:26 EEST 2006
Update of /var/lib/cvs/dovecot/src/master
In directory talvi:/tmp/cvs-serv8609
Modified Files:
main.c
Log Message:
dovecot -n and -a: Print the config file path before parsing it so if there
are errors you can see what file is being used.
Index: main.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/master/main.c,v
retrieving revision 1.88
retrieving revision 1.89
diff -u -d -r1.88 -r1.89
--- main.c 2 Jul 2006 13:55:31 -0000 1.88
+++ main.c 5 Jul 2006 19:52:22 -0000 1.89
@@ -777,6 +777,12 @@
foreground = TRUE;
}
+ if (dump_config || dump_config_nondefaults) {
+ /* print the config file path before parsing it, so in case
+ of errors it's still shown */
+ printf("# %s\n", configfile);
+ }
+
/* read and verify settings before forking */
t_push();
master_settings_init();
@@ -785,7 +791,6 @@
t_pop();
if (dump_config || dump_config_nondefaults) {
- printf("# %s\n", configfile);
master_settings_dump(settings_root, dump_config_nondefaults);
return 0;
}
More information about the dovecot-cvs
mailing list