Second part of the fix for bug #5790 - samba returns STATUS_OBJECT_NAME_NOT_FOUND...
commit3b02b9e40ee5b1c4dbdf503fdeb0351832a1e9c9
authorJeremy Allison <jra@samba.org>
Sat, 27 Sep 2008 01:39:03 +0000 (26 18:39 -0700)
committerJeremy Allison <jra@samba.org>
Sat, 27 Sep 2008 01:39:03 +0000 (26 18:39 -0700)
tree3abe31e4f6835968af709f9c8d95fa0550b633e6
parentfae2fce47e28ccfe5f43744200ce2ae68da3a9aa
Second part of the 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.
source3/smbd/files.c