[SCM] Samba Shared Repository - branch master updated

Andrew Bartlett abartlet at samba.org
Wed Mar 9 01:04:02 MST 2011


The branch, master has been updated
       via  9728b5a librpc/ndr use hyper for uid_t/gid_t rather than udlong
      from  c4b52fb s3: Use talloc_tos() in idmap_nss_sids_to_unixids

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 9728b5a0d5a5c09615a09a97bf217bcacb773579
Author: Andrew Bartlett <abartlet at samba.org>
Date:   Wed Mar 2 19:06:15 2011 +1100

    librpc/ndr use hyper for uid_t/gid_t rather than udlong
    
    This has 8 byte alignment, which is what was specified in pidl for
    these types.
    
    Andrew Bartlett
    
    Autobuild-User: Andrew Bartlett <abartlet at samba.org>
    Autobuild-Date: Wed Mar  9 09:03:09 CET 2011 on sn-devel-104

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

Summary of changes:
 librpc/ndr/ndr_basic.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)


Changeset truncated at 500 lines:

diff --git a/librpc/ndr/ndr_basic.c b/librpc/ndr/ndr_basic.c
index 8e0789a..b444300 100644
--- a/librpc/ndr/ndr_basic.c
+++ b/librpc/ndr/ndr_basic.c
@@ -814,7 +814,7 @@ _PUBLIC_ enum ndr_err_code ndr_pull_time_t(struct ndr_pull *ndr, int ndr_flags,
 */
 _PUBLIC_ enum ndr_err_code ndr_push_uid_t(struct ndr_push *ndr, int ndr_flags, uid_t u)
 {
-	return ndr_push_udlong(ndr, NDR_SCALARS, (uint64_t)u);
+	return ndr_push_hyper(ndr, NDR_SCALARS, (uint64_t)u);
 }
 
 /*
@@ -823,7 +823,7 @@ _PUBLIC_ enum ndr_err_code ndr_push_uid_t(struct ndr_push *ndr, int ndr_flags, u
 _PUBLIC_ enum ndr_err_code ndr_pull_uid_t(struct ndr_pull *ndr, int ndr_flags, uid_t *u)
 {
 	uint64_t uu;
-	NDR_CHECK(ndr_pull_udlong(ndr, ndr_flags, &uu));
+	NDR_CHECK(ndr_pull_hyper(ndr, ndr_flags, &uu));
 	*u = (uid_t)uu;
 	if (unlikely(uu != *u)) {
 		DEBUG(0,(__location__ ": uid_t pull doesn't fit 0x%016llx\n",
@@ -839,7 +839,7 @@ _PUBLIC_ enum ndr_err_code ndr_pull_uid_t(struct ndr_pull *ndr, int ndr_flags, u
 */
 _PUBLIC_ enum ndr_err_code ndr_push_gid_t(struct ndr_push *ndr, int ndr_flags, gid_t g)
 {
-	return ndr_push_udlong(ndr, NDR_SCALARS, (uint64_t)g);
+	return ndr_push_hyper(ndr, NDR_SCALARS, (uint64_t)g);
 }
 
 /*
@@ -848,7 +848,7 @@ _PUBLIC_ enum ndr_err_code ndr_push_gid_t(struct ndr_push *ndr, int ndr_flags, g
 _PUBLIC_ enum ndr_err_code ndr_pull_gid_t(struct ndr_pull *ndr, int ndr_flags, gid_t *g)
 {
 	uint64_t gg;
-	NDR_CHECK(ndr_pull_udlong(ndr, ndr_flags, &gg));
+	NDR_CHECK(ndr_pull_hyper(ndr, ndr_flags, &gg));
 	*g = (gid_t)gg;
 	if (unlikely(gg != *g)) {
 		DEBUG(0,(__location__ ": gid_t pull doesn't fit 0x%016llx\n",


-- 
Samba Shared Repository


More information about the samba-cvs mailing list