mirror of
https://github.com/samba-team/samba.git
synced 2025-02-28 01:58:17 +03:00
Fix bug #5790 samba returns STATUS_OBJECT_NAME_NOT_FOUND on set file disposition.
We were checking that fd != -1 in file_find_di_XXX calls which is no longer needed due to a change in internal semantics. Jeremy.
This commit is contained in:
parent
943387edc1
commit
31e10643c9
@ -326,8 +326,7 @@ files_struct *file_find_di_first(struct file_id id)
|
||||
fsp_fi_cache.id = id;
|
||||
|
||||
for (fsp=Files;fsp;fsp=fsp->next) {
|
||||
if ( fsp->fh->fd != -1 &&
|
||||
file_id_equal(&fsp->file_id, &id)) {
|
||||
if (file_id_equal(&fsp->file_id, &id)) {
|
||||
/* Setup positive cache. */
|
||||
fsp_fi_cache.fsp = fsp;
|
||||
return fsp;
|
||||
@ -348,8 +347,7 @@ files_struct *file_find_di_next(files_struct *start_fsp)
|
||||
files_struct *fsp;
|
||||
|
||||
for (fsp = start_fsp->next;fsp;fsp=fsp->next) {
|
||||
if ( fsp->fh->fd != -1 &&
|
||||
file_id_equal(&fsp->file_id, &start_fsp->file_id)) {
|
||||
if (file_id_equal(&fsp->file_id, &start_fsp->file_id)) {
|
||||
return fsp;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user