[SSSD] [PATCH] Cast uid_t to unsigned long long in DEBUG messages

Jan Engelhardt jengelh at inai.de
Tue Jul 10 14:37:20 UTC 2012


On Tuesday 2012-07-10 15:21, Jakub Hrozek wrote:

>krb5_child was crashing on my 32bit system when debugging was enabled
>(and to make it more interesting, only when compiled with -O2). We were
>using %llu to print uid_t values, which didn't match with the real size
>of uid_t on 32bit systems. This patch adds an explicit cast to unsigned
>long long.

unsigned long would be enough, since that is 32-bit even on the oldest
DOS platforms.



More information about the sssd-devel mailing list