From: Howard Chu Date: Sat, 15 Dec 2007 02:28:45 +0000 (+0000) Subject: uid/gid are unsigned X-Git-Tag: OPENLDAP_REL_ENG_2_4_9~20^2~303 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=da53cd0c4022265afd481e4b743a5da9e650d54e;p=openldap uid/gid are unsigned --- diff --git a/libraries/libldap/cyrus.c b/libraries/libldap/cyrus.c index ecde2e5c77..6f528f885b 100644 --- a/libraries/libldap/cyrus.c +++ b/libraries/libldap/cyrus.c @@ -670,9 +670,9 @@ ldap_int_sasl_bind( { char authid[sizeof("gidNumber=4294967295+uidNumber=4294967295," "cn=peercred,cn=external,cn=auth")]; - sprintf( authid, "gidNumber=%d+uidNumber=%d," + sprintf( authid, "gidNumber=%u+uidNumber=%u," "cn=peercred,cn=external,cn=auth", - (int) getegid(), (int) geteuid() ); + getegid(), geteuid() ); (void) ldap_int_sasl_external( ld, ld->ld_defconn, authid, LDAP_PVT_SASL_LOCAL_SSF ); }