summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/modules/vfs_dirsort.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/source3/modules/vfs_dirsort.c b/source3/modules/vfs_dirsort.c
index 64d74d5796..2c257655bc 100644
--- a/source3/modules/vfs_dirsort.c
+++ b/source3/modules/vfs_dirsort.c
@@ -119,7 +119,6 @@ static DIR *dirsort_opendir(vfs_handle_struct *handle,
const char *fname, const char *mask,
uint32 attr)
{
- NTSTATUS status;
struct dirsort_privates *data = NULL;
/* set up our private data about this directory */
@@ -128,12 +127,8 @@ static DIR *dirsort_opendir(vfs_handle_struct *handle,
return NULL;
}
- status = create_synthetic_smb_fname(data,
- fname,
- NULL,
- NULL,
- &data->smb_fname);
- if (!NT_STATUS_IS_OK(status)) {
+ data->smb_fname = synthetic_smb_fname(data, fname, NULL, NULL);
+ if (data->smb_fname == NULL) {
TALLOC_FREE(data);
return NULL;
}