Protect open_and_sort_dir() from the directory changing size.
commitcdcb6319127883d724508da3f6140a1e2aca75af
authorJeremy Allison <jra@samba.org>
Mon, 8 Apr 2013 23:40:35 +0000 (8 16:40 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 11 Apr 2013 16:49:41 +0000 (11 09:49 -0700)
tree12c73b62ba2750b543a5a83c718d41930c5fce87
parent53d980bb0e70e40a07092c07d5fbd59fc8957f49
Protect open_and_sort_dir() from the directory changing size.

Otherwise there could be an error between initial count, allocation
and re-read.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/modules/vfs_dirsort.c