From da53cd0c4022265afd481e4b743a5da9e650d54e Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sat, 15 Dec 2007 02:28:45 +0000 Subject: [PATCH] uid/gid are unsigned --- libraries/libldap/cyrus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ); } -- 2.39.5