1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

smbd: use synthetic_pathref() in delete_all_streams()

This ensures backends can use the pathref fsp as needed.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Ralph Boehme 2021-01-20 15:27:48 +01:00 committed by Jeremy Allison
parent bc1070d241
commit f1607cda38

View File

@ -188,15 +188,16 @@ NTSTATUS delete_all_streams(connection_struct *conn,
continue;
}
smb_fname_stream = synthetic_smb_fname(talloc_tos(),
smb_fname->base_name,
stream_info[i].name,
NULL,
smb_fname->twrp,
(smb_fname->flags &
~SMB_FILENAME_POSIX_PATH));
if (smb_fname_stream == NULL) {
status = synthetic_pathref(talloc_tos(),
conn->cwd_fsp,
smb_fname->base_name,
stream_info[i].name,
NULL,
smb_fname->twrp,
(smb_fname->flags &
~SMB_FILENAME_POSIX_PATH),
&smb_fname_stream);
if (!NT_STATUS_IS_OK(status)) {
DEBUG(0, ("talloc_aprintf failed\n"));
status = NT_STATUS_NO_MEMORY;
goto fail;