r8609: Fix for bugid #2889. I think the problem is that the top 16 bits of the "serve...
authorJeremy Allison <jra@samba.org>
Tue, 19 Jul 2005 17:38:38 +0000 (17:38 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:00:13 +0000 (11:00 -0500)
commit87801bc387e60d8cac74a6fb59af30bfdcc7850d
tree883829d753034e331117d9b6e1b5710414b36eac
parent638b6940703a3a15100838350a0e064f8b84a960
r8609: Fix for bugid #2889. I think the problem is that the top 16 bits of the "server state" field must be
non-zero. As we're using the 32 bit field as an offset then normally this field
will be zero. W2K3 fills this field with a counter enumerating the number of
SMBsearch calls on this directory - starting at 1. Add back the 1<<31 bit flag
DPTR_MASK to ensure this is non-zero - with better checks on use.
Jeremy.
(This used to be commit 6415657942c49ea51d4e4f4ee2189c7d70b9c5fa)
source3/smbd/dir.c
source3/smbd/reply.c