samba-cvs.cvs
[Top] [All Lists]

[SCM] Samba Shared Repository - branch v3-3-test updated - release-3-2-0

Subject: [SCM] Samba Shared Repository - branch v3-3-test updated - release-3-2-0pre2-3410-g1500401
From: jra@xxxxxxxxx (Jeremy Allison)
Date: Thu, 24 Jul 2008 14:02:40 -0500 (CDT)
The branch, v3-3-test has been updated
       via  15004019676a5d860f9d5fbfbecbd31fcec8bf5b (commit)
      from  43eec6517023e7865618791c231e54cc1b800ceb (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test


- Log -----------------------------------------------------------------
commit 15004019676a5d860f9d5fbfbecbd31fcec8bf5b
Author: Jeremy Allison <jra@xxxxxxxxx>
Date:   Thu Jul 24 12:01:46 2008 -0700

    Add casts to uint32_t to match prototype for sid_append_rid().
    Jeremy.

-----------------------------------------------------------------------

Summary of changes:
 source/passdb/util_unixsids.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/passdb/util_unixsids.c b/source/passdb/util_unixsids.c
index 83a5f5c..1b674d0 100644
--- a/source/passdb/util_unixsids.c
+++ b/source/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;
 }


-- 
Samba Shared Repository

<Prev in Thread] Current Thread [Next in Thread>
  • [SCM] Samba Shared Repository - branch v3-3-test updated - release-3-2-0pre2-3410-g1500401, Jeremy Allison <=