vfs: Convert dirsort_opendir to synthetic_smb_fname
authorVolker Lendecke <vl@samba.org>
Mon, 15 Apr 2013 09:42:38 +0000 (11:42 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 17 Apr 2013 21:50:02 +0000 (14:50 -0700)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_dirsort.c

index 64d74d57964d5348bef0d0cb8f0acc51391bdd52..2c257655bc814eca088c6a00de927e8bb24a71f9 100644 (file)
@@ -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;
        }