mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
vfs: Convert streams_xattr_unlink to cp_smb_filename
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
2c733b2ffb
commit
9b875f6244
@ -553,10 +553,9 @@ static int streams_xattr_unlink(vfs_handle_struct *handle,
|
||||
if (is_ntfs_default_stream_smb_fname(smb_fname)) {
|
||||
struct smb_filename *smb_fname_base = NULL;
|
||||
|
||||
status = copy_smb_filename(talloc_tos(), smb_fname,
|
||||
&smb_fname_base);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
errno = map_errno_from_nt_status(status);
|
||||
smb_fname_base = cp_smb_filename(talloc_tos(), smb_fname);
|
||||
if (smb_fname_base == NULL) {
|
||||
errno = ENOMEM;
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user