dovecot-2.0: doveadm-server: Fixed command parameter handling.
dovecot at dovecot.org
dovecot at dovecot.org
Mon Nov 22 20:21:27 EET 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/b724ef3bdc0a
changeset: 12452:b724ef3bdc0a
user: Timo Sirainen <tss at iki.fi>
date: Mon Nov 22 18:21:25 2010 +0000
description:
doveadm-server: Fixed command parameter handling.
diffstat:
src/doveadm/client-connection.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (14 lines):
diff -r f5bec4e94b55 -r b724ef3bdc0a src/doveadm/client-connection.c
--- a/src/doveadm/client-connection.c Fri Nov 19 21:08:37 2010 +0000
+++ b/src/doveadm/client-connection.c Mon Nov 22 18:21:25 2010 +0000
@@ -72,7 +72,9 @@
}
}
- argv += optind;
+ argv += optind-1;
+ optind = 1;
+
if (argv[0] != NULL && cmd->usage_args == NULL) {
i_error("doveadm %s: Client sent unknown parameter: %s",
cmd->name, argv[0]);
More information about the dovecot-cvs
mailing list