summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-07-23 09:55:06 +0200
committerStefan Metzmacher <metze@samba.org>2011-07-23 11:08:19 +0200
commit824a300d2be8403dc9723a39e4bef88c43e46cc4 (patch)
treedef61d7a6b0ef22dc7a7924e8d5ebd35a513a4c9 /source3
parent82413e829e03cc73b2caccea09e33f900fa99a4e (diff)
downloadsamba-824a300d2be8403dc9723a39e4bef88c43e46cc4.tar.gz
samba-824a300d2be8403dc9723a39e4bef88c43e46cc4.tar.bz2
samba-824a300d2be8403dc9723a39e4bef88c43e46cc4.zip
s3:libsmb: cli_set_secdesc() only needs a const struct security_descriptor
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Sat Jul 23 11:08:19 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/clisecdesc.c2
-rw-r--r--source3/libsmb/proto.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/clisecdesc.c b/source3/libsmb/clisecdesc.c
index aded264077..70596d6a67 100644
--- a/source3/libsmb/clisecdesc.c
+++ b/source3/libsmb/clisecdesc.c
@@ -75,7 +75,7 @@ NTSTATUS cli_query_secdesc(struct cli_state *cli, uint16_t fnum,
set the security descriptor for a open file
****************************************************************************/
NTSTATUS cli_set_secdesc(struct cli_state *cli, uint16_t fnum,
- struct security_descriptor *sd)
+ const struct security_descriptor *sd)
{
uint8_t param[8];
uint32 sec_info = 0;
diff --git a/source3/libsmb/proto.h b/source3/libsmb/proto.h
index 298fcbcf9b..1d2da7f8fb 100644
--- a/source3/libsmb/proto.h
+++ b/source3/libsmb/proto.h
@@ -788,7 +788,7 @@ NTSTATUS cli_push(struct cli_state *cli, uint16_t fnum, uint16_t mode,
NTSTATUS cli_query_secdesc(struct cli_state *cli, uint16_t fnum,
TALLOC_CTX *mem_ctx, struct security_descriptor **sd);
NTSTATUS cli_set_secdesc(struct cli_state *cli, uint16_t fnum,
- struct security_descriptor *sd);
+ const struct security_descriptor *sd);
/* The following definitions come from libsmb/clistr.c */