The Samba-Bugzilla – Attachment 2689 Details for
Bug 4600
make python_ext fails for 3.0.25rc3
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
update python bindings for 3.0.25rc3
python-build-fixes.patch (text/plain), 2.61 KB, created by
Steve Langasek
on 2007-05-12 05:27:09 UTC
(
hide
)
Description:
update python bindings for 3.0.25rc3
Filename:
MIME Type:
Creator:
Steve Langasek
Created:
2007-05-12 05:27:09 UTC
Size:
2.61 KB
patch
obsolete
>Index: samba-3.0.25rc3/source/python/py_ntsec.c >=================================================================== >--- samba-3.0.25rc3.orig/source/python/py_ntsec.c 2007-05-07 14:22:19.000000000 -0700 >+++ samba-3.0.25rc3/source/python/py_ntsec.c 2007-05-07 14:22:32.000000000 -0700 >@@ -60,7 +60,7 @@ > > *dict = Py_BuildValue("{sisisi}", "type", ace->type, > "flags", ace->flags, >- "mask", ace->info.mask); >+ "mask", ace->access_mask); > > if (py_from_SID(&obj, &ace->trustee)) { > PyDict_SetItemString(*dict, "trustee", obj); >@@ -103,7 +103,7 @@ > !PyInt_Check(obj)) > return False; > >- sec_access.mask = PyInt_AsLong(obj); >+ sec_access = PyInt_AsLong(obj); > > init_sec_ace(ace, &trustee, ace_type, sec_access, ace_flags); > >@@ -130,7 +130,7 @@ > for (i = 0; i < acl->num_aces; i++) { > PyObject *obj; > >- if (py_from_ACE(&obj, &acl->ace[i])) >+ if (py_from_ACE(&obj, &acl->aces[i])) > PyList_SetItem(ace_list, i, obj); > } > >@@ -157,16 +157,16 @@ > > acl->num_aces = PyList_Size(obj); > >- acl->ace = _talloc(mem_ctx, acl->num_aces * sizeof(SEC_ACE)); >+ acl->aces = _talloc(mem_ctx, acl->num_aces * sizeof(SEC_ACE)); > acl->size = SEC_ACL_HEADER_SIZE; > > for (i = 0; i < acl->num_aces; i++) { > PyObject *py_ace = PyList_GetItem(obj, i); > >- if (!py_to_ACE(&acl->ace[i], py_ace)) >+ if (!py_to_ACE(&acl->aces[i], py_ace)) > return False; > >- acl->size += acl->ace[i].size; >+ acl->size += acl->aces[i].size; > } > > return True; >@@ -191,7 +191,7 @@ > Py_DECREF(obj); > } > >- if (py_from_SID(&obj, sd->grp_sid)) { >+ if (py_from_SID(&obj, sd->group_sid)) { > PyDict_SetItemString(*dict, "group_sid", obj); > Py_DECREF(obj); > } >Index: samba-3.0.25rc3/source/python/py_spoolss_printers_conv.c >=================================================================== >--- samba-3.0.25rc3.orig/source/python/py_spoolss_printers_conv.c 2007-05-07 14:52:21.000000000 -0700 >+++ samba-3.0.25rc3/source/python/py_spoolss_printers_conv.c 2007-05-12 03:13:43.000000000 -0700 >@@ -103,7 +103,6 @@ > }; > > struct pyconv py_PRINTER_INFO_3[] = { >- { "flags", PY_UINT32, offsetof(PRINTER_INFO_3, flags) }, > { NULL } > }; > >Index: samba-3.0.25rc3/source/python/py_srvsvc.c >=================================================================== >--- samba-3.0.25rc3.orig/source/python/py_srvsvc.c 2007-05-12 03:16:34.000000000 -0700 >+++ samba-3.0.25rc3/source/python/py_srvsvc.c 2007-05-12 03:19:03.000000000 -0700 >@@ -122,7 +122,7 @@ > > status = rpccli_srvsvc_net_srv_get_info(cli->pipe_list, mem_ctx, level, &ctr); > >- if (!NT_STATUS_IS_OK(status)) { >+ if (!W_ERROR_IS_OK(status)) { > PyErr_SetObject(srvsvc_error, py_werror_tuple(status)); > goto done; > }
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 4600
: 2689