dovecot-2.2: lib-imap: Use case-insensitive comparisons everywhe...

dovecot at dovecot.org dovecot at dovecot.org
Thu May 15 20:42:52 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/090c90714f59
changeset: 17383:090c90714f59
user:      Timo Sirainen <tss at iki.fi>
date:      Thu May 15 23:41:55 2014 +0300
description:
lib-imap: Use case-insensitive comparisons everywhere for imap_id_send setting parsing.
"os" and "os-version" were case-sensitive while others were not.
Patch by Apple.

diffstat:

 src/lib-imap/imap-id.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (15 lines):

diff -r e99cd21e1f92 -r 090c90714f59 src/lib-imap/imap-id.c
--- a/src/lib-imap/imap-id.c	Thu May 15 13:26:40 2014 +0300
+++ b/src/lib-imap/imap-id.c	Thu May 15 23:41:55 2014 +0300
@@ -26,9 +26,9 @@
 		}
 	}
 
-	if (strcmp(key, "os") == 0)
+	if (strcasecmp(key, "os") == 0)
 		return utsname_result.sysname;
-	if (strcmp(key, "os-version") == 0)
+	if (strcasecmp(key, "os-version") == 0)
 		return utsname_result.release;
 	return NULL;
 }


More information about the dovecot-cvs mailing list