From: Andrew Bartlett Date: Tue, 21 Aug 2012 12:41:13 +0000 (+1000) Subject: s3-pysmbd: Correct the python type for smb_acl_t X-Git-Tag: samba-4.0.0beta7~89 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=125e93cdde0798f306cd8a5778ecbf985aa63d3e;p=thirdparty%2Fsamba.git s3-pysmbd: Correct the python type for smb_acl_t The t is weird, but the python bindings trim the traditional IDL name prefix of each element, as it is usually rudundent. Andrew Bartlett --- diff --git a/source3/smbd/pysmbd.c b/source3/smbd/pysmbd.c index 8fca4e77b75..6456797d63b 100644 --- a/source3/smbd/pysmbd.c +++ b/source3/smbd/pysmbd.c @@ -398,7 +398,7 @@ static PyObject *py_smbd_set_sys_acl(PyObject *self, PyObject *args) if (!PyArg_ParseTuple(args, "siO", &fname, &acl_type, &py_acl)) return NULL; - if (!py_check_dcerpc_type(py_acl, "samba.dcerpc.smb_acl", "sys_acl_t")) { + if (!py_check_dcerpc_type(py_acl, "samba.dcerpc.smb_acl", "t")) { return NULL; } @@ -460,7 +460,7 @@ static PyObject *py_smbd_get_sys_acl(PyObject *self, PyObject *args) talloc_steal(frame, acl); conn_free(conn); - py_acl = py_return_ndr_struct("samba.dcerpc.smb_acl", "sys_acl_t", acl, acl); + py_acl = py_return_ndr_struct("samba.dcerpc.smb_acl", "t", acl, acl); TALLOC_FREE(frame);