summaryrefslogtreecommitdiff
path: root/source3/smbd/dir.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-02-26 19:53:55 +0000
committerJeremy Allison <jra@samba.org>1998-02-26 19:53:55 +0000
commitde3badf479eb08c19d4abc0625488effc79dc1fd (patch)
tree5993befe61e7ab92b7425d2351ff1da771c368a3 /source3/smbd/dir.c
parent64095b2486e3aca286103e28e400da3e40b14556 (diff)
downloadsamba-de3badf479eb08c19d4abc0625488effc79dc1fd.tar.gz
samba-de3badf479eb08c19d4abc0625488effc79dc1fd.tar.bz2
samba-de3badf479eb08c19d4abc0625488effc79dc1fd.zip
Fix for NT redirector bug where deltree fails if the resume key
indexes are changed between directory scans. This fix does what NT4.x SP3 does in that it stops using resume keys and returns zero instead. We now use the filename in findnext to continue the search in the correct place (as NT does). Jeremy. (This used to be commit b813fb22c4c1b0ee48667e99e82434d20266bbf2)
Diffstat (limited to 'source3/smbd/dir.c')
-rw-r--r--source3/smbd/dir.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c
index d751653263..a34406cc65 100644
--- a/source3/smbd/dir.c
+++ b/source3/smbd/dir.c
@@ -393,21 +393,16 @@ void *dptr_fetch(char *buf,int *num)
}
/****************************************************************************
-fetch the dir ptr and seek it given the lanman2 parameter block
+fetch the dir ptr.
****************************************************************************/
-void *dptr_fetch_lanman2(char *params,int dptr_num)
+void *dptr_fetch_lanman2(int dptr_num)
{
void *p = dptr_get(dptr_num,dircounter++);
- uint32 resume_key = SVAL(params,6);
- BOOL uses_resume_key = BITSETW(params+10,2);
- BOOL continue_bit = BITSETW(params+10,3);
if (!p) {
DEBUG(3,("fetched null dirptr %d\n",dptr_num));
return(NULL);
}
- if(uses_resume_key && !continue_bit)
- SeekDir(p,resume_key);
DEBUG(3,("fetching dirptr %d for path %s\n",dptr_num,dptr_path(dptr_num)));
return(p);
}