summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-04-12 12:14:32 +0200
committerJeremy Allison <jra@samba.org>2013-04-17 14:50:00 -0700
commit1dc29208f3b9bf7733bdfe19262ab533f813d9fb (patch)
tree087b050fdc9d3b5939f93e54420f6ab108956e3a
parent204d971d892e0aec8a5c0eb8b97b6a9675905bfe (diff)
downloadsamba-1dc29208f3b9bf7733bdfe19262ab533f813d9fb.tar.gz
samba-1dc29208f3b9bf7733bdfe19262ab533f813d9fb.tar.bz2
samba-1dc29208f3b9bf7733bdfe19262ab533f813d9fb.zip
pysmbd: Convert py_smbd_unlink to synthetic_smb_fname
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r--source3/smbd/pysmbd.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/smbd/pysmbd.c b/source3/smbd/pysmbd.c
index c1d3b4bc79..683c48ccf7 100644
--- a/source3/smbd/pysmbd.c
+++ b/source3/smbd/pysmbd.c
@@ -424,11 +424,10 @@ static PyObject *py_smbd_unlink(PyObject *self, PyObject *args, PyObject *kwargs
return NULL;
}
- status = create_synthetic_smb_fname_split(frame, fname, NULL,
- &smb_fname);
- if (!NT_STATUS_IS_OK(status)) {
+ smb_fname = synthetic_smb_fname_split(frame, fname, NULL);
+ if (smb_fname == NULL) {
TALLOC_FREE(frame);
- PyErr_NTSTATUS_IS_ERR_RAISE(status);
+ PyErr_NTSTATUS_IS_ERR_RAISE(NT_STATUS_NO_MEMORY);
}
ret = SMB_VFS_UNLINK(conn, smb_fname);