From: Timo Sirainen Date: Wed, 6 May 2009 19:09:38 +0000 (-0400) Subject: dovecot: Fixed --parameters. X-Git-Tag: 2.0.alpha1~811 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2a50e379e26c99b3f2a7a4d66644e5c1f5126ca0;p=thirdparty%2Fdovecot%2Fcore.git dovecot: Fixed --parameters. --HG-- branch : HEAD --- diff --git a/src/master/main.c b/src/master/main.c index 9b8804550a..6bf109d129 100644 --- a/src/master/main.c +++ b/src/master/main.c @@ -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;