s3-pysmbd: Fix return type of smbd.get_nt_acl
authorAndrew Bartlett <abartlet@samba.org>
Wed, 22 Aug 2012 23:39:32 +0000 (09:39 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 23 Aug 2012 13:02:26 +0000 (15:02 +0200)
The security_ prefix is stripped off in the python bindings.

Andrew Bartlett

source3/smbd/pysmbd.c

index a4de0e44eeecaaaceeedbafa9f2368205b9887d3..6a0811a9b34b21f1a95656b8557a1dd23fbed0f1 100644 (file)
@@ -382,7 +382,7 @@ static PyObject *py_smbd_get_nt_acl(PyObject *self, PyObject *args)
        
        sd = get_nt_acl_no_snum(tmp_ctx, fname);
 
-       py_sd = py_return_ndr_struct("samba.dcerpc.security", "security_descriptor", sd, sd);
+       py_sd = py_return_ndr_struct("samba.dcerpc.security", "descriptor", sd, sd);
 
        talloc_free(tmp_ctx);