dovecot-2.0: convert-tool didn't handle command line parameters ...

dovecot at dovecot.org dovecot at dovecot.org
Tue May 26 04:44:32 EEST 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/e76d521817d3
changeset: 9368:e76d521817d3
user:      Timo Sirainen <tss at iki.fi>
date:      Mon May 25 21:44:24 2009 -0400
description:
convert-tool didn't handle command line parameters correctly.

diffstat:

1 file changed, 4 insertions(+), 4 deletions(-)
src/plugins/convert/convert-tool.c |    8 ++++----

diffs (27 lines):

diff -r 704917a65a16 -r e76d521817d3 src/plugins/convert/convert-tool.c
--- a/src/plugins/convert/convert-tool.c	Mon May 25 21:22:55 2009 -0400
+++ b/src/plugins/convert/convert-tool.c	Mon May 25 21:44:24 2009 -0400
@@ -13,7 +13,7 @@
 
 #define USAGE_STRING \
 "Usage: <username> <home dir> <source mail env> <dest mail env>\n" \
-"       [skip_broken_mailboxes] [skip_dotfiles] [alt_hierarchy_char=<c>]"
+"       [skip_broken_mailboxes] [skip_dotdirs] [alt_hierarchy_char=<c>]"
 
 int main(int argc, char *argv[])
 {
@@ -40,11 +40,11 @@ int main(int argc, char *argv[])
 
 	memset(&set, 0, sizeof(set));
 	for (i = optind + 4; i < argc; i++) {
-		if (strcmp(argv[i], "skip_broken_mailboxes") != 0)
+		if (strcmp(argv[i], "skip_broken_mailboxes") == 0)
 			set.skip_broken_mailboxes = TRUE;
-		else if (strcmp(argv[i], "skip_dotdirs") != 0)
+		else if (strcmp(argv[i], "skip_dotdirs") == 0)
 			set.skip_dotdirs = TRUE;
-		else if (strncmp(argv[i], "alt_hierarchy_char=", 19) != 0)
+		else if (strncmp(argv[i], "alt_hierarchy_char=", 19) == 0)
 			set.alt_hierarchy_char = argv[i][19];
 		else
 			i_fatal(USAGE_STRING);


More information about the dovecot-cvs mailing list