dovecot-2.0: imap, pop3: Fixed giving any -parameters.

dovecot at dovecot.org dovecot at dovecot.org
Fri Nov 19 18:24:47 EET 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/0d455d1a9ea6
changeset: 12450:0d455d1a9ea6
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Nov 19 16:24:41 2010 +0000
description:
imap, pop3: Fixed giving any -parameters.

diffstat:

 src/imap/main.c |  3 ++-
 src/pop3/main.c |  3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 3e4a65a74c40 -r 0d455d1a9ea6 src/imap/main.c
--- a/src/imap/main.c	Thu Nov 18 20:35:39 2010 +0000
+++ b/src/imap/main.c	Fri Nov 19 16:24:41 2010 +0000
@@ -340,7 +340,8 @@
 			return FATAL_DEFAULT;
 		}
 	}
-	postlogin_socket_path = argv[1] == NULL ? NULL : t_abspath(argv[1]);
+	postlogin_socket_path = argv[optind] == NULL ? NULL :
+		t_abspath(argv[optind]);
 
 	master_service_init_finish(master_service);
 	master_service_set_die_callback(master_service, imap_die);
diff -r 3e4a65a74c40 -r 0d455d1a9ea6 src/pop3/main.c
--- a/src/pop3/main.c	Thu Nov 18 20:35:39 2010 +0000
+++ b/src/pop3/main.c	Fri Nov 19 16:24:41 2010 +0000
@@ -221,7 +221,8 @@
 			return FATAL_DEFAULT;
 		}
 	}
-	postlogin_socket_path = argv[1] == NULL ? NULL : t_abspath(argv[1]);
+	postlogin_socket_path = argv[optind] == NULL ? NULL :
+		t_abspath(argv[optind]);
 
 	master_service_init_finish(master_service);
 	master_service_set_die_callback(master_service, pop3_die);


More information about the dovecot-cvs mailing list