Fix crash bug on smbd shutdown when using FOPENDIR() found by Volker.
commit3fc3602d07f5e08ff872584bb7942940af5b9ff9
authorJeremy Allison <jra@samba.org>
Thu, 17 Mar 2011 22:55:15 +0000 (17 15:55 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 17 Mar 2011 23:10:26 +0000 (17 16:10 -0700)
treeb646a5873d25e52d323e298a5069747f27f7e923
parentc302e0e794085c4beef50e52b34658b0bd228936
Fix crash bug on smbd shutdown when using FOPENDIR() found by Volker.

The key was allowing the dptr_idle code to be triggered. We were
closing the dirp->dir handle without updating the underlying fd
in the open fsp.

Jeremy.
(cherry picked from commit 4c77d620e6cc5ea31f4a8f0bf9c8dab81f5f1002)
source3/smbd/dir.c