mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
s3: smbd: Remove dptr_fetch_lanman2() - unused.
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
d6e709c43e
commit
b4431ad305
@ -818,25 +818,6 @@ files_struct *dptr_fetch_fsp(struct smbd_server_connection *sconn,
|
|||||||
return dptr->dir_hnd->fsp;
|
return dptr->dir_hnd->fsp;
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
Fetch the dir ptr.
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
struct dptr_struct *dptr_fetch_lanman2(struct smbd_server_connection *sconn,
|
|
||||||
int dptr_num)
|
|
||||||
{
|
|
||||||
struct dptr_struct *dptr = dptr_get(sconn, dptr_num);
|
|
||||||
|
|
||||||
if (!dptr) {
|
|
||||||
DEBUG(3,("fetched null dirptr %d\n",dptr_num));
|
|
||||||
return(NULL);
|
|
||||||
}
|
|
||||||
DEBUG(3,("fetching dirptr %d for path %s\n",
|
|
||||||
dptr_num,
|
|
||||||
dptr->smb_dname->base_name));
|
|
||||||
return(dptr);
|
|
||||||
}
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
Fetch the fsp associated with the dptr_num.
|
Fetch the fsp associated with the dptr_num.
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
@ -844,11 +825,13 @@ struct dptr_struct *dptr_fetch_lanman2(struct smbd_server_connection *sconn,
|
|||||||
files_struct *dptr_fetch_lanman2_fsp(struct smbd_server_connection *sconn,
|
files_struct *dptr_fetch_lanman2_fsp(struct smbd_server_connection *sconn,
|
||||||
int dptr_num)
|
int dptr_num)
|
||||||
{
|
{
|
||||||
struct dptr_struct *dptr = dptr_fetch_lanman2(sconn, dptr_num);
|
struct dptr_struct *dptr = dptr_get(sconn, dptr_num);
|
||||||
|
|
||||||
if (dptr == NULL) {
|
if (dptr == NULL) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
DBG_NOTICE("fetching dirptr %d for path %s\n",
|
||||||
|
dptr_num,
|
||||||
|
dptr->smb_dname->base_name);
|
||||||
return dptr->dir_hnd->fsp;
|
return dptr->dir_hnd->fsp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -209,8 +209,6 @@ bool dptr_fill(struct smbd_server_connection *sconn,
|
|||||||
char *buf1,unsigned int key);
|
char *buf1,unsigned int key);
|
||||||
files_struct *dptr_fetch_fsp(struct smbd_server_connection *sconn,
|
files_struct *dptr_fetch_fsp(struct smbd_server_connection *sconn,
|
||||||
char *buf,int *num);
|
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,
|
files_struct *dptr_fetch_lanman2_fsp(struct smbd_server_connection *sconn,
|
||||||
int dptr_num);
|
int dptr_num);
|
||||||
bool get_dir_entry(TALLOC_CTX *ctx,
|
bool get_dir_entry(TALLOC_CTX *ctx,
|
||||||
|
Loading…
Reference in New Issue
Block a user