1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-09 08:58:35 +03:00

s3: smbd: Add dptr_fetch_fsp() for SMB1 code. We will use this to replace dptr_fetch().

Not yet used.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Jeremy Allison 2019-07-17 13:05:43 -07:00 committed by Ralph Boehme
parent 5a7aaa8060
commit 96e8175dc8
2 changed files with 18 additions and 0 deletions

View File

@ -817,6 +817,22 @@ struct dptr_struct *dptr_fetch(struct smbd_server_connection *sconn,
return(dptr);
}
/****************************************************************************
Return the associated fsp and seek the dir_hnd on it it given the 5 byte
server field.
****************************************************************************/
files_struct *dptr_fetch_fsp(struct smbd_server_connection *sconn,
char *buf, int *num)
{
struct dptr_struct *dptr = dptr_fetch(sconn, buf, num);
if (dptr == NULL) {
return NULL;
}
return dptr->dir_hnd->fsp;
}
/****************************************************************************
Fetch the dir ptr.
****************************************************************************/

View File

@ -209,6 +209,8 @@ bool dptr_fill(struct smbd_server_connection *sconn,
char *buf1,unsigned int key);
struct dptr_struct *dptr_fetch(struct smbd_server_connection *sconn,
char *buf,int *num);
files_struct *dptr_fetch_fsp(struct smbd_server_connection *sconn,
char *buf,int *num);
struct dptr_struct *dptr_fetch_lanman2(struct smbd_server_connection *sconn,
int dptr_num);
bool get_dir_entry(TALLOC_CTX *ctx,