1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

smbd: add dir_hnd_fetch_fsp()

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Ralph Boehme 2021-01-22 12:46:04 +01:00 committed by Jeremy Allison
parent 640683990e
commit 21859695fc
2 changed files with 7 additions and 0 deletions

View File

@ -735,6 +735,11 @@ files_struct *dptr_fetch_fsp(struct smbd_server_connection *sconn,
return dptr->dir_hnd->fsp;
}
struct files_struct *dir_hnd_fetch_fsp(struct smb_Dir *dir_hnd)
{
return dir_hnd->fsp;
}
/****************************************************************************
Fetch the fsp associated with the dptr_num.
****************************************************************************/

View File

@ -213,6 +213,8 @@ bool dptr_fill(struct smbd_server_connection *sconn,
char *buf1,unsigned int key);
files_struct *dptr_fetch_fsp(struct smbd_server_connection *sconn,
char *buf,int *num);
struct smb_Dir;
struct files_struct *dir_hnd_fetch_fsp(struct smb_Dir *dir_hnd);
files_struct *dptr_fetch_lanman2_fsp(struct smbd_server_connection *sconn,
int dptr_num);
bool get_dir_entry(TALLOC_CTX *ctx,