mirror of
https://github.com/samba-team/samba.git
synced 2025-08-24 21:49:29 +03:00
s3: smbd: check_reduced_name_with_privilege(), parent_smb_fname() -> SMB_VFS_PARENT_PATHNAME().
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
committed by
Ralph Boehme
parent
2e41ffe104
commit
7dc7a2c048
@ -1144,19 +1144,17 @@ NTSTATUS check_reduced_name_with_privilege(connection_struct *conn,
|
||||
int ret;
|
||||
struct smb_filename *parent_name = NULL;
|
||||
struct smb_filename *file_name = NULL;
|
||||
bool ok;
|
||||
|
||||
DEBUG(3,("check_reduced_name_with_privilege [%s] [%s]\n",
|
||||
smb_fname->base_name,
|
||||
conn->connectpath));
|
||||
|
||||
|
||||
ok = parent_smb_fname(ctx,
|
||||
smb_fname,
|
||||
&parent_name,
|
||||
&file_name);
|
||||
if (!ok) {
|
||||
status = NT_STATUS_NO_MEMORY;
|
||||
status = SMB_VFS_PARENT_PATHNAME(conn,
|
||||
ctx,
|
||||
smb_fname,
|
||||
&parent_name,
|
||||
&file_name);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
goto err;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user