mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
smbd: Convert posix_sys_acl_blob_get_file to synthetic_smb_fname
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
1dc29208f3
commit
aa523408b4
@ -4739,13 +4739,12 @@ int posix_sys_acl_blob_get_file(vfs_handle_struct *handle,
|
||||
int ret;
|
||||
TALLOC_CTX *frame = talloc_stackframe();
|
||||
struct smb_acl_wrapper acl_wrapper = {};
|
||||
struct smb_filename *smb_fname = NULL;
|
||||
NTSTATUS status = create_synthetic_smb_fname_split(frame, path_p,
|
||||
NULL,
|
||||
&smb_fname);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
errno = map_errno_from_nt_status(status);
|
||||
struct smb_filename *smb_fname;
|
||||
|
||||
smb_fname = synthetic_smb_fname_split(frame, path_p, NULL);
|
||||
if (smb_fname == NULL) {
|
||||
TALLOC_FREE(frame);
|
||||
errno = ENOMEM;
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user