Second part of the fix for bug #5790 - samba returns STATUS_OBJECT_NAME_NOT_FOUND...
authorJeremy Allison <jra@samba.org>
Sat, 27 Sep 2008 01:33:07 +0000 (18:33 -0700)
committerJeremy Allison <jra@samba.org>
Sat, 27 Sep 2008 01:33:07 +0000 (18:33 -0700)
commit857433ec526caf73905dc9cb4fa25fb6355e5004
tree32e54d7196c16e0a4842605012c005e188458bfa
parent461dfd9e4e225d4bf458baf1cc384be253c73e40
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.
source/smbd/files.c