dovecot-2.0: script, script-login: Tell GNU getopt() not to acce...

dovecot at dovecot.org dovecot at dovecot.org
Fri Jun 4 21:57:54 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/7567896556bd
changeset: 11482:7567896556bd
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Jun 04 19:47:50 2010 +0100
description:
script, script-login: Tell GNU getopt() not to access -parameters after first non-parameter.

diffstat:

 src/util/script-login.c |  2 +-
 src/util/script.c       |  2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diffs (24 lines):

diff -r b5d8a7a8695e -r 7567896556bd src/util/script-login.c
--- a/src/util/script-login.c	Fri Jun 04 19:16:42 2010 +0100
+++ b/src/util/script-login.c	Fri Jun 04 19:47:50 2010 +0100
@@ -186,7 +186,7 @@
 		flags |= MASTER_SERVICE_FLAG_STANDALONE;
 
 	master_service = master_service_init("script-login", flags,
-					     &argc, &argv, "d");
+					     &argc, &argv, "+d");
 	while ((c = master_getopt(master_service)) > 0) {
 		switch (c) {
 		case 'd':
diff -r b5d8a7a8695e -r 7567896556bd src/util/script.c
--- a/src/util/script.c	Fri Jun 04 19:16:42 2010 +0100
+++ b/src/util/script.c	Fri Jun 04 19:47:50 2010 +0100
@@ -95,7 +95,7 @@
 	const char *binary;
 	int i;
 
-	master_service = master_service_init("script", 0, &argc, &argv, NULL);
+	master_service = master_service_init("script", 0, &argc, &argv, "+");
 	if (master_getopt(master_service) > 0)
 		return FATAL_DEFAULT;
 	argc -= optind;


More information about the dovecot-cvs mailing list