Fix for bug #5790 - samba returns STATUS_OBJECT_NAME_NOT_FOUND on set file dispositio...
commit3d10c237a9b71d269d7936d58c2f8c0172165cbe
authorJeremy Allison <jra@samba.org>
Sat, 27 Sep 2008 01:41:05 +0000 (26 18:41 -0700)
committerJeremy Allison <jra@samba.org>
Sat, 27 Sep 2008 01:41:05 +0000 (26 18:41 -0700)
treef11d29e219fdc16c391974d5f60ae16b88913632
parent2f230176a19788e659522c7ccccb19b289412166
Fix for bug #5790 - samba returns STATUS_OBJECT_NAME_NOT_FOUND on set file disposition call.
This was my fault. I use a singleton cache (positive and negative) to speed up pathname based
qfileinfo/setfileinfo lookups for alternate fsp's open on the same path. I only invalidated the
negative cache on adding a new file fsp, as I incorrectly imagined the new fsp was put at the *end* of
the open files list. DLIST_ADD puts it at the start, meaning any subsequent open wasn't seen once the
cache was set. Doh !
Jeremy.
source/smbd/files.c