[Dovecot] [PATCH] Fix for dovecotpw on powerpc and other architectures
Hi, please apply the following patch to dovecotpw. Without this, it
will be unusable on powerpc and (maybe) other architectures where
the char is unsigned by default.
--- dovecot-1.0/src/util/dovecotpw.c (revisione 2066)
+++ dovecot-1.0.new/src/util/dovecotpw.c (copia locale)
@@ -40,7 +40,7 @@
const char *user = NULL;
char *scheme = NULL;
char *plaintext = NULL;
- char ch;
+ signed char ch;
int lflag = 0, Vflag = 0;
lib_init();
Thanks!
Fabio Tranchitella
Op ma, 18-12-2006 te 18:42 +0100, schreef Fabio Tranchitella:
Hi, please apply the following patch to dovecotpw. Without this, it will be unusable on powerpc and (maybe) other architectures where the char is unsigned by default.
As the original reporter of the bug, I just wanted to say 'thank you' for the fix! It seems to work on my powerpc-box correctly.
Thanks!
Koen
On Mon, 2006-12-18 at 18:42 +0100, Fabio Tranchitella wrote:
Hi, please apply the following patch to dovecotpw. Without this, it will be unusable on powerpc and (maybe) other architectures where the char is unsigned by default.
--- dovecot-1.0/src/util/dovecotpw.c (revisione 2066) +++ dovecot-1.0.new/src/util/dovecotpw.c (copia locale) @@ -40,7 +40,7 @@ const char *user = NULL; char *scheme = NULL; char *plaintext = NULL; - char ch; + signed char ch;
It should actually be int. Committed fix to cvs.
participants (3)
-
Fabio Tranchitella
-
Koen Vermeer
-
Timo Sirainen