dovecot-2.0-pigeonhole: Fixed bug in parsing of duration settings.

pigeonhole at rename-it.nl pigeonhole at rename-it.nl
Fri Feb 11 10:24:24 EET 2011


details:   http://hg.rename-it.nl/dovecot-2.0-pigeonhole/rev/36dddc51f9a5
changeset: 1474:36dddc51f9a5
user:      Stephan Bosch <stephan at rename-it.nl>
date:      Fri Feb 11 09:24:12 2011 +0100
description:
Fixed bug in parsing of duration settings.

diffstat:

 src/lib-sieve/sieve-settings.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (22 lines):

diff -r 3c11b2ae95a0 -r 36dddc51f9a5 src/lib-sieve/sieve-settings.c
--- a/src/lib-sieve/sieve-settings.c	Wed Feb 09 19:38:58 2011 +0100
+++ b/src/lib-sieve/sieve-settings.c	Fri Feb 11 09:24:12 2011 +0100
@@ -119,8 +119,7 @@
 	case 'B': /* byte (useless) */
 		multiply = 1;
 		break;
-	case 'k': /* kilobyte */
-	case 'K':	 
+	case 'K': /* kilobyte */
 		multiply = 1024;
 		break;
 	case 'M': /* megabyte */
@@ -193,7 +192,7 @@
 	if ( !sieve_setting_parse_uint(svinst, setting, str_value, &endp, &value) )
 		return FALSE;
 
-	switch (i_toupper(*endp)) {
+	switch (i_tolower(*endp)) {
 	case '\0': /* default */
 	case 's': /* seconds */
 		multiply = 1;


More information about the dovecot-cvs mailing list