mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s3: smbd: In openat_pathref_dirfsp_nosymlink() ensure we call fsp_smb_fname_link() to set smb_fname->fsp in the returned smb_fname.
Instead of just assigning smb_fname->fsp = fsp. This makes the logic match that of openat_pathref_fullname() and parent_pathref() when returning smb_fnames with associated pathref fsp's. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
This commit is contained in:
parent
3ddc9344c2
commit
31479d7781
@ -944,7 +944,12 @@ next:
|
||||
goto nomem;
|
||||
}
|
||||
|
||||
result->fsp = fsp;
|
||||
status = fsp_smb_fname_link(fsp,
|
||||
&result->fsp_link,
|
||||
&result->fsp);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
goto fail;
|
||||
}
|
||||
talloc_set_destructor(result, smb_fname_fsp_destructor);
|
||||
|
||||
*_smb_fname = result;
|
||||
|
Loading…
Reference in New Issue
Block a user