summaryrefslogtreecommitdiff
path: root/source3/passdb
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-07-24 12:01:46 -0700
committerJeremy Allison <jra@samba.org>2008-07-24 12:01:46 -0700
commit61859a18f0996eef8300e59788773d5f11ed9c0d (patch)
treee5430eba0a60016a74d7fbce202cb2d192c95bb6 /source3/passdb
parenta4932d66576be2a514c534131ae09614e061c621 (diff)
downloadsamba-61859a18f0996eef8300e59788773d5f11ed9c0d.tar.gz
samba-61859a18f0996eef8300e59788773d5f11ed9c0d.tar.bz2
samba-61859a18f0996eef8300e59788773d5f11ed9c0d.zip
Add casts to uint32_t to match prototype for sid_append_rid().
Jeremy. (This used to be commit 15004019676a5d860f9d5fbfbecbd31fcec8bf5b)
Diffstat (limited to 'source3/passdb')
-rw-r--r--source3/passdb/util_unixsids.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/passdb/util_unixsids.c b/source3/passdb/util_unixsids.c
index 83a5f5cab4..1b674d02a2 100644
--- a/source3/passdb/util_unixsids.c
+++ b/source3/passdb/util_unixsids.c
@@ -38,13 +38,13 @@ bool sid_check_is_in_unix_users(const DOM_SID *sid)
bool uid_to_unix_users_sid(uid_t uid, DOM_SID *sid)
{
sid_copy(sid, &global_sid_Unix_Users);
- return sid_append_rid(sid, uid);
+ return sid_append_rid(sid, (uint32_t)uid);
}
bool gid_to_unix_groups_sid(gid_t gid, DOM_SID *sid)
{
sid_copy(sid, &global_sid_Unix_Groups);
- return sid_append_rid(sid, gid);
+ return sid_append_rid(sid, (uint32_t)gid);
}
const char *unix_users_domain_name(void)
@@ -62,7 +62,7 @@ bool lookup_unix_user_name(const char *name, DOM_SID *sid)
}
sid_copy(sid, &global_sid_Unix_Users);
- sid_append_rid(sid, pwd->pw_uid); /* For 64-bit uid's we have enough
+ sid_append_rid(sid, (uint32_t)pwd->pw_uid); /* For 64-bit uid's we have enough
* space ... */
TALLOC_FREE(pwd);
return True;
@@ -99,7 +99,7 @@ bool lookup_unix_group_name(const char *name, DOM_SID *sid)
}
sid_copy(sid, &global_sid_Unix_Groups);
- sid_append_rid(sid, grp->gr_gid); /* For 64-bit uid's we have enough
+ sid_append_rid(sid, (uint32_t)grp->gr_gid); /* For 64-bit uid's we have enough
* space ... */
return True;
}