]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3/libadouble: use openat_pathref_fsp() in ad_unconvert_get_streams()
authorRalph Boehme <slow@samba.org>
Thu, 12 Nov 2020 11:31:13 +0000 (12:31 +0100)
committerRalph Boehme <slow@samba.org>
Wed, 16 Dec 2020 09:08:31 +0000 (09:08 +0000)
Ensures we have a pathref handle in the smb_fname we pass to
SMB_VFS_CREATE_FILE().

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/lib/adouble.c

index 5518d28596ba86977bede37da3411d86d38c96ae..d4090c224d556ee128af656f657ffc3a10f12cab 100644 (file)
@@ -1538,6 +1538,11 @@ static bool ad_unconvert_get_streams(struct vfs_handle_struct *handle,
        files_struct *fsp = NULL;
        NTSTATUS status;
 
+       status = openat_pathref_fsp(handle->conn->cwd_fsp, smb_fname);
+       if (!NT_STATUS_IS_OK(status)) {
+               return false;
+       }
+
        status = SMB_VFS_CREATE_FILE(
                handle->conn,                           /* conn */
                NULL,                                   /* req */