1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-30 17: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:
Ralph Boehme
2020-05-15 15:14:26 +02:00
parent ef17a408c8
commit 84cf205ff4
3 changed files with 12 additions and 12 deletions

View File

@ -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;
}

View File

@ -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;

View File

@ -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 */