summaryrefslogtreecommitdiff
path: root/source3/smbd/pysmbd.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-08-23 09:45:07 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-08-23 15:02:26 +0200
commit0aed29105e9d8ddcd27a70d7af820da8813ca47b (patch)
tree9c9cfad154e13af3771b01c543a129606de157c6 /source3/smbd/pysmbd.c
parente058dfb3b0714da229d1bddf96c72611af7b1fab (diff)
downloadsamba-0aed29105e9d8ddcd27a70d7af820da8813ca47b.tar.gz
samba-0aed29105e9d8ddcd27a70d7af820da8813ca47b.tar.bz2
samba-0aed29105e9d8ddcd27a70d7af820da8813ca47b.zip
s3-smbd: Add security_info_wanted argument to get_nt_acl_no_snum
I need to get at the owner, group, DACL and SACL when testing correct ACL storage. Andrew Bartlett
Diffstat (limited to 'source3/smbd/pysmbd.c')
-rw-r--r--source3/smbd/pysmbd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/pysmbd.c b/source3/smbd/pysmbd.c
index 6a0811a9b3..74acc01a3a 100644
--- a/source3/smbd/pysmbd.c
+++ b/source3/smbd/pysmbd.c
@@ -372,15 +372,15 @@ static PyObject *py_smbd_set_nt_acl(PyObject *self, PyObject *args)
static PyObject *py_smbd_get_nt_acl(PyObject *self, PyObject *args)
{
char *fname;
- int security_info_sent;
+ int security_info_wanted;
PyObject *py_sd;
struct security_descriptor *sd;
TALLOC_CTX *tmp_ctx = talloc_new(NULL);
- if (!PyArg_ParseTuple(args, "si", &fname, &security_info_sent))
+ if (!PyArg_ParseTuple(args, "si", &fname, &security_info_wanted))
return NULL;
- sd = get_nt_acl_no_snum(tmp_ctx, fname);
+ sd = get_nt_acl_no_snum(tmp_ctx, fname, security_info_wanted);
py_sd = py_return_ndr_struct("samba.dcerpc.security", "descriptor", sd, sd);