1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

vfs: Convert dirsort_opendir to synthetic_smb_fname

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2013-04-15 11:42:38 +02:00 committed by Jeremy Allison
parent 730c57bf52
commit 0cb056472d

View File

@ -119,7 +119,6 @@ static DIR *dirsort_opendir(vfs_handle_struct *handle,
const char *fname, const char *mask, const char *fname, const char *mask,
uint32 attr) uint32 attr)
{ {
NTSTATUS status;
struct dirsort_privates *data = NULL; struct dirsort_privates *data = NULL;
/* set up our private data about this directory */ /* set up our private data about this directory */
@ -128,12 +127,8 @@ static DIR *dirsort_opendir(vfs_handle_struct *handle,
return NULL; return NULL;
} }
status = create_synthetic_smb_fname(data, data->smb_fname = synthetic_smb_fname(data, fname, NULL, NULL);
fname, if (data->smb_fname == NULL) {
NULL,
NULL,
&data->smb_fname);
if (!NT_STATUS_IS_OK(status)) {
TALLOC_FREE(data); TALLOC_FREE(data);
return NULL; return NULL;
} }