dovecot-1.1: master: "Unknown argument" error printed always the...

dovecot at dovecot.org dovecot at dovecot.org
Tue Apr 21 23:37:11 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.1/rev/f7baedd9c1e2
changeset: 8251:f7baedd9c1e2
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Apr 21 16:36:52 2009 -0400
description:
master: "Unknown argument" error printed always the first argument instead of the unknown one.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/master/main.c |    2 +-

diffs (12 lines):

diff -r d36c3ec2b274 -r f7baedd9c1e2 src/master/main.c
--- a/src/master/main.c	Mon Apr 20 14:43:15 2009 -0400
+++ b/src/master/main.c	Tue Apr 21 16:36:52 2009 -0400
@@ -513,7 +513,7 @@ int main(int argc, char *argv[])
 			foreground = TRUE;
 		} else {
 			print_help();
-			i_fatal("Unknown argument: %s", argv[1]);
+			i_fatal("Unknown argument: %s", argv[i]);
 		}
 	}
 


More information about the dovecot-cvs mailing list