Protect open_and_sort_dir() from the directory changing size.
authorJeremy Allison <jra@samba.org>
Mon, 8 Apr 2013 23:40:35 +0000 (16:40 -0700)
committerKarolin Seeger <kseeger@samba.org>
Wed, 19 Jun 2013 08:55:34 +0000 (10:55 +0200)
commit582d8ca565ad12133a4319650e886f58246b3bd9
treec1e882d6c6ff857f9b3b26af502f313003497672
parentf81822166d8d41c6c3ee6f17924ebe87e4303211
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