dovecot-2.0: dovecot: Fixed --parameters.

dovecot at dovecot.org dovecot at dovecot.org
Wed May 6 22:23:02 EEST 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/0b74ad9372d9
changeset: 9241:0b74ad9372d9
user:      Timo Sirainen <tss at iki.fi>
date:      Wed May 06 15:09:38 2009 -0400
description:
dovecot: Fixed --parameters.

diffstat:

1 file changed, 3 insertions(+), 1 deletion(-)
src/master/main.c |    4 +++-

diffs (15 lines):

diff -r 3e5c6e2367db -r 0b74ad9372d9 src/master/main.c
--- a/src/master/main.c	Wed May 06 15:08:16 2009 -0400
+++ b/src/master/main.c	Wed May 06 15:09:38 2009 -0400
@@ -544,8 +544,10 @@ int main(int argc, char *argv[])
 	master_uid = geteuid();
 	master_gid = getegid();
 
-	getopt_str = t_strconcat("Fanp", master_service_getopt_string(), NULL);
+	getopt_str = t_strconcat("Fanp-", master_service_getopt_string(), NULL);
 	while ((c = getopt(argc, argv, getopt_str)) > 0) {
+		if (c == '-')
+			break;
 		switch (c) {
 		case 'F':
 			foreground = TRUE;


More information about the dovecot-cvs mailing list