From 0c1a06dfad03a45dc5cfff027dacd6e95194a786 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Wed, 27 Nov 2002 02:22:53 +0000 Subject: * finializnig RedHat package for alpha21 release * fix cli_ds_getprimarydominfo() (bad memcpy() ) (This used to be commit e6184bbd8f87586e8cc98e4c599cf8e16f310bb9) --- packaging/RedHat/samba2.spec.tmpl | 3 +++ source3/rpc_client/cli_ds.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packaging/RedHat/samba2.spec.tmpl b/packaging/RedHat/samba2.spec.tmpl index 29357a2e34..011626af07 100644 --- a/packaging/RedHat/samba2.spec.tmpl +++ b/packaging/RedHat/samba2.spec.tmpl @@ -66,6 +66,9 @@ make -j${NUMCPU} all nsswitch/libnss_wins.so modules make -j${NUMCPU} debug2html make -j${NUMCPU} bin/smbspool +# Remove some permission bits to avoid to many dependencies +find examples docs -type f | xargs -r chmod -x + %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT diff --git a/source3/rpc_client/cli_ds.c b/source3/rpc_client/cli_ds.c index 46e24b7a84..f0edeca000 100644 --- a/source3/rpc_client/cli_ds.c +++ b/source3/rpc_client/cli_ds.c @@ -62,7 +62,7 @@ NTSTATUS cli_ds_getprimarydominfo(struct cli_state *cli, TALLOC_CTX *mem_ctx, ctr->basic = talloc(mem_ctx, sizeof(DSROLE_PRIMARY_DOMAIN_INFO_BASIC)); if (!ctr->basic) goto done; - memcpy(ctr->basic, &r.info.basic, sizeof(DSROLE_PRIMARY_DOMAIN_INFO_BASIC)); + memcpy(ctr->basic, r.info.basic, sizeof(DSROLE_PRIMARY_DOMAIN_INFO_BASIC)); } done: -- cgit