mirror of
https://github.com/samba-team/samba.git
synced 2025-08-29 13:49:30 +03:00
smbd: rename open_internal_dirfsp_at() to open_internal_dirfsp()
Having removed the unused dirfsp parameter this is not an AT function. Security is provided by symlink safe fd_open(). Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
@ -1369,10 +1369,10 @@ struct smb_Dir *OpenDir(TALLOC_CTX *mem_ctx,
|
||||
struct smb_Dir *dir_hnd = NULL;
|
||||
NTSTATUS status;
|
||||
|
||||
status = open_internal_dirfsp_at(conn,
|
||||
smb_dname,
|
||||
O_RDONLY,
|
||||
&fsp);
|
||||
status = open_internal_dirfsp(conn,
|
||||
smb_dname,
|
||||
O_RDONLY,
|
||||
&fsp);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
return NULL;
|
||||
}
|
||||
|
@ -219,10 +219,10 @@ NTSTATUS create_internal_dirfsp_at(connection_struct *conn,
|
||||
/*
|
||||
* Open an internal fsp for an *existing* directory.
|
||||
*/
|
||||
NTSTATUS open_internal_dirfsp_at(connection_struct *conn,
|
||||
const struct smb_filename *smb_dname,
|
||||
int open_flags,
|
||||
struct files_struct **_fsp)
|
||||
NTSTATUS open_internal_dirfsp(connection_struct *conn,
|
||||
const struct smb_filename *smb_dname,
|
||||
int open_flags,
|
||||
struct files_struct **_fsp)
|
||||
{
|
||||
struct files_struct *fsp = NULL;
|
||||
NTSTATUS status;
|
||||
|
@ -451,10 +451,10 @@ NTSTATUS create_internal_dirfsp_at(connection_struct *conn,
|
||||
const struct smb_filename *smb_dname,
|
||||
struct files_struct **_fsp);
|
||||
|
||||
NTSTATUS open_internal_dirfsp_at(connection_struct *conn,
|
||||
const struct smb_filename *smb_dname,
|
||||
int open_flags,
|
||||
struct files_struct **_fsp);
|
||||
NTSTATUS open_internal_dirfsp(connection_struct *conn,
|
||||
const struct smb_filename *smb_dname,
|
||||
int open_flags,
|
||||
struct files_struct **_fsp);
|
||||
|
||||
/* The following definitions come from smbd/ipc.c */
|
||||
|
||||
|
Reference in New Issue
Block a user