vfs: Convert streams_depot_streaminfo to synthetic_smb_fname
authorVolker Lendecke <vl@samba.org>
Fri, 12 Apr 2013 09:37:10 +0000 (11:37 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 17 Apr 2013 21:49:59 +0000 (14:49 -0700)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_streams_depot.c

index da11ba432369dd5e34fd8981f2abf73708e03765..3ada92eeb5ee3417cc5b7261657341575e4c3343 100644 (file)
@@ -847,15 +847,14 @@ static NTSTATUS streams_depot_streaminfo(vfs_handle_struct *handle,
                                         unsigned int *pnum_streams,
                                         struct stream_struct **pstreams)
 {
-       struct smb_filename *smb_fname_base = NULL;
+       struct smb_filename *smb_fname_base;
        int ret;
        NTSTATUS status;
        struct streaminfo_state state;
 
-       status = create_synthetic_smb_fname(talloc_tos(), fname, NULL, NULL,
-                                           &smb_fname_base);
-       if (!NT_STATUS_IS_OK(status)) {
-               return status;
+       smb_fname_base = synthetic_smb_fname(talloc_tos(), fname, NULL, NULL);
+       if (smb_fname_base == NULL) {
+               return NT_STATUS_NO_MEMORY;
        }
 
        if ((fsp != NULL) && (fsp->fh->fd != -1)) {