summaryrefslogtreecommitdiff
path: root/source3/python
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-05-08 04:19:52 +0000
committerTim Potter <tpot@samba.org>2002-05-08 04:19:52 +0000
commit646183a78d82bf33c0ff051de4a628c367c42784 (patch)
treec27fe5e11df86534781d5e2f36fdb39e99000945 /source3/python
parentcd929ae6ce2d408fe3256de4a3e9e71c89986e77 (diff)
downloadsamba-646183a78d82bf33c0ff051de4a628c367c42784.tar.gz
samba-646183a78d82bf33c0ff051de4a628c367c42784.tar.bz2
samba-646183a78d82bf33c0ff051de4a628c367c42784.zip
Remove unused variable.
#ifdef out code for new (uncommitted) version of make_sec_desc() (This used to be commit 07d11f5e0938c0e4f895391f6c8e2501069a0ef7)
Diffstat (limited to 'source3/python')
-rw-r--r--source3/python/py_ntsec.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/source3/python/py_ntsec.c b/source3/python/py_ntsec.c
index f9881f5a55..8981f0c3ac 100644
--- a/source3/python/py_ntsec.c
+++ b/source3/python/py_ntsec.c
@@ -45,8 +45,6 @@ BOOL py_from_SID(PyObject **obj, DOM_SID *sid)
BOOL py_to_SID(DOM_SID *sid, PyObject *obj)
{
- BOOL result;
-
if (!PyString_Check(obj))
return False;
@@ -264,11 +262,23 @@ BOOL py_to_SECDESC(SEC_DESC **sd, PyObject *dict, TALLOC_CTX *mem_ctx)
}
}
+#if 0 /* For new secdesc code */
*sd = make_sec_desc(mem_ctx, revision,
got_owner_sid ? &owner_sid : NULL,
got_group_sid ? &group_sid : NULL,
got_sacl ? &sacl : NULL,
got_dacl ? &dacl : NULL);
-
+#else
+ {
+ size_t sd_size;
+
+ *sd = make_sec_desc(mem_ctx, revision,
+ got_owner_sid ? &owner_sid : NULL,
+ got_group_sid ? &group_sid : NULL,
+ got_sacl ? &sacl : NULL,
+ got_dacl ? &dacl : NULL, &sd_size);
+ }
+#endif
+
return True;
}