summaryrefslogtreecommitdiff
path: root/source3/python
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-09-19 21:57:46 +0000
committerJeremy Allison <jra@samba.org>2003-09-19 21:57:46 +0000
commit8139c5fcfa6bd26ce03af41c374f84be48343666 (patch)
treee96b2089507cba6c52d12c989f4c1d9a792785a4 /source3/python
parent389bf06cde17871fe4d8ef4cecc1cf92ef91e6be (diff)
downloadsamba-8139c5fcfa6bd26ce03af41c374f84be48343666.tar.gz
samba-8139c5fcfa6bd26ce03af41c374f84be48343666.tar.bz2
samba-8139c5fcfa6bd26ce03af41c374f84be48343666.zip
Ensure that dup_sec_desc copies the 'type' field correctly. This caused
me to expose a type arguement to make_sec_desc(). We weren't copying the SE_DESC_DACL_AUTO_INHERITED flag which could cause errors on auto inherited checks. Jeremy. (This used to be commit 546b2271c08735ac1049a453abac996d794aa364)
Diffstat (limited to 'source3/python')
-rw-r--r--source3/python/py_ntsec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/python/py_ntsec.c b/source3/python/py_ntsec.c
index 3d408e0bda..5ce5e8fc1b 100644
--- a/source3/python/py_ntsec.c
+++ b/source3/python/py_ntsec.c
@@ -276,7 +276,7 @@ BOOL py_to_SECDESC(SEC_DESC **sd, PyObject *dict, TALLOC_CTX *mem_ctx)
{
size_t sd_size;
- *sd = make_sec_desc(mem_ctx, revision,
+ *sd = make_sec_desc(mem_ctx, revision, SEC_DESC_SELF_RELATIVE,
got_owner_sid ? &owner_sid : NULL,
got_group_sid ? &group_sid : NULL,
got_sacl ? &sacl : NULL,