1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-02 00:22:11 +03:00

Remove unused variable.

#ifdef out code for new (uncommitted) version of make_sec_desc()
(This used to be commit 07d11f5e09)
This commit is contained in:
Tim Potter
2002-05-08 04:19:52 +00:00
parent cd929ae6ce
commit 646183a78d

View File

@ -45,8 +45,6 @@ BOOL py_from_SID(PyObject **obj, DOM_SID *sid)
BOOL py_to_SID(DOM_SID *sid, PyObject *obj) BOOL py_to_SID(DOM_SID *sid, PyObject *obj)
{ {
BOOL result;
if (!PyString_Check(obj)) if (!PyString_Check(obj))
return False; 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, *sd = make_sec_desc(mem_ctx, revision,
got_owner_sid ? &owner_sid : NULL, got_owner_sid ? &owner_sid : NULL,
got_group_sid ? &group_sid : NULL, got_group_sid ? &group_sid : NULL,
got_sacl ? &sacl : NULL, got_sacl ? &sacl : NULL,
got_dacl ? &dacl : 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; return True;
} }