]> git.ipfire.org Git - thirdparty/samba.git/commit
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>
Mon, 12 Aug 2013 07:09:43 +0000 (09:09 +0200)
commitd302cb6faee3282379d87e2c65dde392ab6a1750
tree53a1b24f1376778ea44cb7a9a570b680e61b9ef5
parentbc3714f54e7de35bacbeb1f22851b857fcac63ac
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>
(cherry picked from commit 582d8ca565ad12133a4319650e886f58246b3bd9)
source3/modules/vfs_dirsort.c