]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs: Slightly simplify ad_get_meta_fsp()
authorVolker Lendecke <vl@samba.org>
Sat, 1 Feb 2025 10:26:00 +0000 (11:26 +0100)
committerJeremy Allison <jra@samba.org>
Wed, 5 Feb 2025 00:07:30 +0000 (00:07 +0000)
Use cp_smb_filename_nostream()

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_fruit.c

index 74a89237cd6442e66cdde3fa004eec4fa73f7f56..09d171bef8a6a98e1dab37b919f8e2593c95d18a 100644 (file)
@@ -229,12 +229,10 @@ static struct adouble *ad_get_meta_fsp(TALLOC_CTX *ctx,
                return NULL;
        }
 
-       smb_fname_cp = cp_smb_filename(ctx,
-                                      smb_fname);
+       smb_fname_cp = cp_smb_filename_nostream(ctx, smb_fname);
        if (smb_fname_cp == NULL) {
                return NULL;
        }
-       TALLOC_FREE(smb_fname_cp->stream_name);
        config->in_openat_pathref_fsp = true;
        status = openat_pathref_fsp(handle->conn->cwd_fsp,
                                    smb_fname_cp);