diff options
author | Jeremy Allison <jra@samba.org> | 2019-09-13 11:22:06 -0700 |
---|---|---|
committer | Ralph Boehme <slow@samba.org> | 2019-09-26 17:20:48 +0000 |
commit | 56b355d07959923381e60c3fc51136cc4703876f (patch) | |
tree | 5f8fdba10ec3921d3c9c48fa9d568787bfc8ad0b /source3/smbd | |
parent | 3d6a8d9ae0d55d92068c06651f6722b8158c25c8 (diff) | |
download | samba-56b355d07959923381e60c3fc51136cc4703876f.tar.gz |
s3: pysmbd: Change py_smbd_unlink() to call SMB_VFS_UNLINKAT().
Use conn->cwd_fsp as current fsp.
No logic change for now.
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/pysmbd.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/smbd/pysmbd.c b/source3/smbd/pysmbd.c index f7425690673..69cc96b34a4 100644 --- a/source3/smbd/pysmbd.c +++ b/source3/smbd/pysmbd.c @@ -550,7 +550,10 @@ static PyObject *py_smbd_unlink(PyObject *self, PyObject *args, PyObject *kwargs return PyErr_NoMemory(); } - ret = SMB_VFS_UNLINK(conn, smb_fname); + ret = SMB_VFS_UNLINKAT(conn, + conn->cwd_fsp, + smb_fname, + 0); if (ret != 0) { TALLOC_FREE(frame); errno = ret; |