The only caller threw the result away.
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Search for a file by name.
****************************************************************************/
-bool dptr_SearchDir(struct dptr_struct *dptr, const char *name, long *poffset, SMB_STRUCT_STAT *pst)
+bool dptr_SearchDir(struct dptr_struct *dptr, const char *name, long *poffset)
{
- SET_STAT_INVALID(*pst);
-
if (!dptr->has_wild && (dptr->dir_hnd->offset == END_OF_DIRECTORY_OFFSET)) {
/* This is a singleton directory and we're already at the end. */
*poffset = END_OF_DIRECTORY_OFFSET;
bool dptr_get_priv(struct dptr_struct *dptr);
void dptr_set_priv(struct dptr_struct *dptr);
bool dptr_case_sensitive(struct dptr_struct *dptr);
-bool dptr_SearchDir(struct dptr_struct *dptr, const char *name, long *poffset, SMB_STRUCT_STAT *pst);
+bool dptr_SearchDir(struct dptr_struct *dptr, const char *name, long *poffset);
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,
*/
if(!continue_bit && resume_name && *resume_name) {
- SMB_STRUCT_STAT st;
bool posix_open = (fsp->posix_flags & FSP_POSIX_FLAGS_OPEN);
long current_pos = 0;
* should already be at the correct place.
*/
- finished = !dptr_SearchDir(fsp->dptr, resume_name, ¤t_pos, &st);
+ finished =
+ !dptr_SearchDir(fsp->dptr, resume_name, ¤t_pos);
} /* end if resume_name && !continue_bit */
ask_sharemode = fsp_search_ask_sharemode(fsp);