The Samba-Bugzilla – Attachment 692 Details for
Bug 1864
query_secdesc / set_secdesc don't provide all secdesc fields
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to fix the submitted bug
py_ntsec.c.patch (text/plain), 1.09 KB, created by
Brett Funderburg
on 2004-10-01 12:46:22 UTC
(
hide
)
Description:
Patch to fix the submitted bug
Filename:
MIME Type:
Creator:
Brett Funderburg
Created:
2004-10-01 12:46:22 UTC
Size:
1.09 KB
patch
obsolete
>--- py_ntsec.c.orig Fri Oct 1 14:33:20 2004 >+++ py_ntsec.c Fri Oct 1 13:22:40 2004 >@@ -182,6 +182,10 @@ > PyDict_SetItemString(*dict, "revision", obj); > Py_DECREF(obj); > >+ obj = PyInt_FromLong(sd->type); >+ PyDict_SetItemString(*dict, "type", obj); >+ Py_DECREF(obj); >+ > if (py_from_SID(&obj, sd->owner_sid)) { > PyDict_SetItemString(*dict, "owner_sid", obj); > Py_DECREF(obj); >@@ -209,6 +213,7 @@ > { > PyObject *obj; > uint16 revision; >+ uint16 type = SEC_DESC_SELF_RELATIVE; > DOM_SID owner_sid, group_sid; > SEC_ACL sacl, dacl; > BOOL got_dacl = False, got_sacl = False; >@@ -222,6 +227,12 @@ > > revision = PyInt_AsLong(obj); > >+ if ((obj = PyDict_GetItemString(dict, "type"))) { >+ if (obj != Py_None) { >+ type = PyInt_AsLong(obj); >+ } >+ } >+ > if ((obj = PyDict_GetItemString(dict, "owner_sid"))) { > > if (obj != Py_None) { >@@ -276,7 +287,7 @@ > { > size_t sd_size; > >- *sd = make_sec_desc(mem_ctx, revision, SEC_DESC_SELF_RELATIVE, >+ *sd = make_sec_desc(mem_ctx, revision, type, > got_owner_sid ? &owner_sid : NULL, > got_group_sid ? &group_sid : NULL, > got_sacl ? &sacl : NULL,
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1864
: 692