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

s3: smbd: Add dptr_fetch_lanman2_fsp() - to replace dptr_fetch_lanman2().

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:20:08 -07:00 committed by Ralph Boehme
parent e63400841e
commit b922f6e704
2 changed files with 17 additions and 0 deletions

View File

@ -837,6 +837,21 @@ struct dptr_struct *dptr_fetch_lanman2(struct smbd_server_connection *sconn,
return(dptr);
}
/****************************************************************************
Fetch the fsp associated with the dptr_num.
****************************************************************************/
files_struct *dptr_fetch_lanman2_fsp(struct smbd_server_connection *sconn,
int dptr_num)
{
struct dptr_struct *dptr = dptr_fetch_lanman2(sconn, dptr_num);
if (dptr == NULL) {
return NULL;
}
return dptr->dir_hnd->fsp;
}
static bool mangle_mask_match(connection_struct *conn,
const char *filename,
const char *mask)

View File

@ -211,6 +211,8 @@ 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);
files_struct *dptr_fetch_lanman2_fsp(struct smbd_server_connection *sconn,
int dptr_num);
bool get_dir_entry(TALLOC_CTX *ctx,
struct dptr_struct *dirptr,
const char *mask,