dovecot-2.2: doveadm: Make sure we can't accidentally add duplic...
dovecot at dovecot.org
dovecot at dovecot.org
Fri Aug 7 12:33:16 UTC 2015
details: http://hg.dovecot.org/dovecot-2.2/rev/00f306fc5bde
changeset: 18926:00f306fc5bde
user: Timo Sirainen <tss at iki.fi>
date: Fri Aug 07 15:32:28 2015 +0300
description:
doveadm: Make sure we can't accidentally add duplicate getopt args.
diffstat:
src/doveadm/doveadm-mail.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (12 lines):
diff -r ff17864ba6e0 -r 00f306fc5bde src/doveadm/doveadm-mail.c
--- a/src/doveadm/doveadm-mail.c Fri Aug 07 15:32:14 2015 +0300
+++ b/src/doveadm/doveadm-mail.c Fri Aug 07 15:32:28 2015 +0300
@@ -549,6 +549,8 @@
/* keep context's getopt_args first in case it contains '+' */
if (ctx->getopt_args != NULL)
getopt_args = t_strconcat(ctx->getopt_args, getopt_args, NULL);
+ i_assert(master_getopt_str_is_valid(getopt_args));
+
ctx->cur_username = getenv("USER");
wildcard_user = NULL;
while ((c = getopt(argc, argv, getopt_args)) > 0) {
More information about the dovecot-cvs
mailing list