mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
smbd: remove calls to dptr_init_search_op() from TRANS2 search code
dptr_init_search_op() invokes VFS operations which are no-op in all in-tree VFS modules. Furthermore, it's not being called by the SMB2 search code, so probably it's not being used by any out-of-tree VFS module either. Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
f53ee1284f
commit
b8aa599f06
@ -2867,9 +2867,6 @@ total_data=%u (should be %u)\n", (unsigned int)total_data, (unsigned int)IVAL(pd
|
||||
dptr_num = dptr_dnum(dirptr);
|
||||
DEBUG(4,("dptr_num is %d, wcard = %s, attr = %d\n", dptr_num, mask, dirtype));
|
||||
|
||||
/* Initialize per TRANS2_FIND_FIRST operation data */
|
||||
dptr_init_search_op(dirptr);
|
||||
|
||||
/* We don't need to check for VOL here as this is returned by
|
||||
a different TRANS2 call. */
|
||||
|
||||
@ -3237,9 +3234,6 @@ total_data=%u (should be %u)\n", (unsigned int)total_data, (unsigned int)IVAL(pd
|
||||
dptr_TellDir(dirptr),
|
||||
(int)backup_priv));
|
||||
|
||||
/* Initialize per TRANS2_FIND_NEXT operation data */
|
||||
dptr_init_search_op(dirptr);
|
||||
|
||||
/* We don't need to check for VOL here as this is returned by
|
||||
a different TRANS2 call. */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user