summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2002-11-27 02:22:53 +0000
committerGerald Carter <jerry@samba.org>2002-11-27 02:22:53 +0000
commit0c1a06dfad03a45dc5cfff027dacd6e95194a786 (patch)
treeb636cf6a465ace50e9a047282da0c32dd476206e
parent72948b91a01e8da944ee12d46f5e757b51b64c8e (diff)
downloadsamba-0c1a06dfad03a45dc5cfff027dacd6e95194a786.tar.gz
samba-0c1a06dfad03a45dc5cfff027dacd6e95194a786.tar.bz2
samba-0c1a06dfad03a45dc5cfff027dacd6e95194a786.zip
* finializnig RedHat package for alpha21 release
* fix cli_ds_getprimarydominfo() (bad memcpy() ) (This used to be commit e6184bbd8f87586e8cc98e4c599cf8e16f310bb9)
-rw-r--r--packaging/RedHat/samba2.spec.tmpl3
-rw-r--r--source3/rpc_client/cli_ds.c2
2 files changed, 4 insertions, 1 deletions
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: