diff options
author | Volker Lendecke <vl@samba.org> | 2013-04-15 11:42:38 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2013-04-17 14:50:02 -0700 |
commit | 0cb056472dc38010ea12aed167ea664c7c5c912a (patch) | |
tree | e35b48238de6d783ccdb75848e2352890dedf75e | |
parent | 730c57bf5217057bcf72f12b94f5501bea75ca1c (diff) | |
download | samba-0cb056472dc38010ea12aed167ea664c7c5c912a.tar.gz samba-0cb056472dc38010ea12aed167ea664c7c5c912a.tar.bz2 samba-0cb056472dc38010ea12aed167ea664c7c5c912a.zip |
vfs: Convert dirsort_opendir to synthetic_smb_fname
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r-- | source3/modules/vfs_dirsort.c | 9 |
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; } |