]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3-pysmbd: Correct the python type for smb_acl_t
authorAndrew Bartlett <abartlet@samba.org>
Tue, 21 Aug 2012 12:41:13 +0000 (22:41 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 21 Aug 2012 23:31:57 +0000 (01:31 +0200)
The t is weird, but the python bindings trim the traditional IDL name
prefix of each element, as it is usually rudundent.

Andrew Bartlett

source3/smbd/pysmbd.c

index 8fca4e77b75e3f8d23138de276f8c4b7a7c3b3e4..6456797d63b10aeffb419e8cfa8a1a2a90c4a6a7 100644 (file)
@@ -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);