summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2003-07-24 00:01:10 +0000
committerTim Potter <tpot@samba.org>2003-07-24 00:01:10 +0000
commit9832cd8617cc8b14545eb147d0b61361c43950c1 (patch)
treed43ba35abcb6f9320840bfaf89e177edcec555fa /source3
parentb32da5a1c78d3d5ca2a9afa0dfa1d2dfd6eb550c (diff)
downloadsamba-9832cd8617cc8b14545eb147d0b61361c43950c1.tar.gz
samba-9832cd8617cc8b14545eb147d0b61361c43950c1.tar.bz2
samba-9832cd8617cc8b14545eb147d0b61361c43950c1.zip
Some more [ug]id_t printf fixes.
(This used to be commit 165d1ae55622ca1e89c94fc5e40bdf5cddbcab45)
Diffstat (limited to 'source3')
-rw-r--r--source3/sam/idmap_ldap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/sam/idmap_ldap.c b/source3/sam/idmap_ldap.c
index 92962b8499..e9bf79c99a 100644
--- a/source3/sam/idmap_ldap.c
+++ b/source3/sam/idmap_ldap.c
@@ -795,14 +795,14 @@ static NTSTATUS ldap_set_mapping(const DOM_SID *sid, unid_t id, int id_type)
suffix = lp_ldap_suffix();
type = get_attr_key2string( idpool_attr_list, LDAP_ATTR_UIDNUMBER );
posix_obj_class = LDAP_OBJ_POSIXACCOUNT;
- fstr_sprintf(id_str, "%u", id.uid );
+ fstr_sprintf(id_str, "%lu", (unsigned long)id.uid );
}
else {
obj_class = LDAP_OBJ_GROUPMAP;
suffix = lp_ldap_group_suffix();
type = get_attr_key2string( idpool_attr_list, LDAP_ATTR_GIDNUMBER );
posix_obj_class = LDAP_OBJ_POSIXGROUP;
- fstr_sprintf(id_str, "%u", id.gid );
+ fstr_sprintf(id_str, "%lu", (unsigned long)id.gid );
}
sid_to_string(sid_str, sid);
@@ -915,8 +915,8 @@ static NTSTATUS ldap_idmap_init( char *params )
return NT_STATUS_UNSUCCESSFUL;
}
- fstr_sprintf( uid_str, "%d", luid );
- fstr_sprintf( gid_str, "%d", lgid );
+ fstr_sprintf( uid_str, "%lu", (unsigned long)luid );
+ fstr_sprintf( gid_str, "%lu", (unsigned long)lgid );
smbldap_set_mod( &mods, LDAP_MOD_ADD, "objectClass", LDAP_OBJ_IDPOOL );
smbldap_set_mod( &mods, LDAP_MOD_ADD,