From 0cb056472dc38010ea12aed167ea664c7c5c912a Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 15 Apr 2013 11:42:38 +0200 Subject: [PATCH] vfs: Convert dirsort_opendir to synthetic_smb_fname Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/modules/vfs_dirsort.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/source3/modules/vfs_dirsort.c b/source3/modules/vfs_dirsort.c index 64d74d57964..2c257655bc8 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; } -- 2.34.1