diff --git a/source3/modules/vfs_shadow_copy2.c b/source3/modules/vfs_shadow_copy2.c index c63d7a7b033..51c1a5ebc06 100644 --- a/source3/modules/vfs_shadow_copy2.c +++ b/source3/modules/vfs_shadow_copy2.c @@ -1956,9 +1956,9 @@ static int shadow_copy2_get_shadow_copy_data( goto done; } - status = create_internal_dirfsp_at(handle->conn, - snapdir_smb_fname, - &dirfsp); + status = create_internal_dirfsp(handle->conn, + snapdir_smb_fname, + &dirfsp); if (!NT_STATUS_IS_OK(status)) { DBG_WARNING("create_internal_dir_fsp() failed for '%s'" " - %s\n", snapdir, nt_errstr(status)); diff --git a/source3/smbd/files.c b/source3/smbd/files.c index 2106d1accba..bc064fce8c7 100644 --- a/source3/smbd/files.c +++ b/source3/smbd/files.c @@ -176,9 +176,9 @@ NTSTATUS file_new(struct smb_request *req, connection_struct *conn, * This should only be used by callers in the VFS that need to control the * opening of the directory. Otherwise use open_internal_dirfsp_at(). */ -NTSTATUS create_internal_dirfsp_at(connection_struct *conn, - const struct smb_filename *smb_dname, - struct files_struct **_fsp) +NTSTATUS create_internal_dirfsp(connection_struct *conn, + const struct smb_filename *smb_dname, + struct files_struct **_fsp) { struct files_struct *fsp = NULL; NTSTATUS status; @@ -227,7 +227,7 @@ NTSTATUS open_internal_dirfsp(connection_struct *conn, struct files_struct *fsp = NULL; NTSTATUS status; - status = create_internal_dirfsp_at(conn, smb_dname, &fsp); + status = create_internal_dirfsp(conn, smb_dname, &fsp); if (!NT_STATUS_IS_OK(status)) { return status; } diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index 943f9729d67..c57cb3242c4 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -447,9 +447,9 @@ NTSTATUS fsp_set_smb_fname(struct files_struct *fsp, const struct smb_filename *smb_fname_in); size_t fsp_fullbasepath(struct files_struct *fsp, char *buf, size_t buflen); -NTSTATUS create_internal_dirfsp_at(connection_struct *conn, - const struct smb_filename *smb_dname, - struct files_struct **_fsp); +NTSTATUS create_internal_dirfsp(connection_struct *conn, + const struct smb_filename *smb_dname, + struct files_struct **_fsp); NTSTATUS open_internal_dirfsp(connection_struct *conn, const struct smb_filename *smb_dname,