mirror of
https://github.com/samba-team/samba.git
synced 2025-03-01 04:58:35 +03:00
r21770: For old DOS style searches we must remember if
the initial search had a wildcard in order to correctly return no error on end of search. Found by Samba4 torture tester. Jeremy. (This used to be commit c74bcf7677123f273d44181ca053ba49b8c7ddae)
This commit is contained in:
parent
12c617af08
commit
dd011f453e
@ -1010,6 +1010,11 @@ int reply_search(connection_struct *conn, char *inbuf,char *outbuf, int dum_size
|
||||
}
|
||||
string_set(&conn->dirpath,dptr_path(dptr_num));
|
||||
pstrcpy(mask, dptr_wcard(dptr_num));
|
||||
/*
|
||||
* For a 'continue' search we have no string. So
|
||||
* check from the initial saved string.
|
||||
*/
|
||||
mask_contains_wcard = ms_has_wild(mask);
|
||||
}
|
||||
|
||||
p = smb_buf(outbuf) + 3;
|
||||
|
Loading…
x
Reference in New Issue
Block a user