dovecot-2.0: doveadm auth: Fail if after password there is more ...
dovecot at dovecot.org
dovecot at dovecot.org
Wed May 26 21:33:19 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/3d928798d278
changeset: 11386:3d928798d278
user: Timo Sirainen <tss at iki.fi>
date: Wed May 26 19:33:16 2010 +0100
description:
doveadm auth: Fail if after password there is more parameters.
diffstat:
src/doveadm/doveadm-auth.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (15 lines):
diff -r 5a875b6a5982 -r 3d928798d278 src/doveadm/doveadm-auth.c
--- a/src/doveadm/doveadm-auth.c Wed May 26 19:20:04 2010 +0100
+++ b/src/doveadm/doveadm-auth.c Wed May 26 19:33:16 2010 +0100
@@ -195,8 +195,10 @@
if (cmd == &doveadm_cmd_auth) {
input.username = argv[optind++];
- input.password = argv[optind] != NULL ? argv[optind] :
+ input.password = argv[optind] != NULL ? argv[optind++] :
t_askpass("Password: ");
+ if (argv[optind] != NULL)
+ i_fatal("Unexpected parameter: %s", argv[optind]);
if (cmd_auth_input(auth_socket_path, &input) < 0)
exit(FATAL_DEFAULT);
if (!input.success)
More information about the dovecot-cvs
mailing list