From 646183a78d82bf33c0ff051de4a628c367c42784 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Wed, 8 May 2002 04:19:52 +0000 Subject: Remove unused variable. #ifdef out code for new (uncommitted) version of make_sec_desc() (This used to be commit 07d11f5e0938c0e4f895391f6c8e2501069a0ef7) --- source3/python/py_ntsec.c | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'source3') 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; } -- cgit