Not yet used.
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
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.
****************************************************************************/
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,