]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: Cleanup - fix the comment for dptr_SearchDir().
authorJeremy Allison <jra@samba.org>
Fri, 4 Jun 2021 19:32:34 +0000 (12:32 -0700)
committerRalph Boehme <slow@samba.org>
Wed, 9 Jun 2021 13:14:30 +0000 (13:14 +0000)
It doesn't and never has skipped VETO or unreadable files.

It's only used in call_trans2findnext() in the SMB1 code
given a name already returned to the client to find a
resume position. Even if the client gave us a name that
it had never been given to it (client bug or malicious
client) we'd just start the search from the wrong position,
which doesn't cause problems (we still check for VETO
or unreadable before returning any names).

Worst thing that actually happens is the client messes
up their own search, which is what you'd expect from
giving an incorrect resume name.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/dir.c

index 9d5244e3c4e51a707adac0c54efd86839e36b052..946d86de3fde0574fcc78bab660171776cfa30c0 100644 (file)
@@ -559,7 +559,7 @@ ret:
 }
 
 /****************************************************************************
- Search for a file by name, skipping veto'ed and not visible files.
+ Search for a file by name.
 ****************************************************************************/
 
 bool dptr_SearchDir(struct dptr_struct *dptr, const char *name, long *poffset, SMB_STRUCT_STAT *pst)