Clean error paths in opendir and fd_opendir by only setting handle data on success.
authorJeremy Allison <jra@samba.org>
Tue, 9 Apr 2013 17:29:47 +0000 (10:29 -0700)
committerKarolin Seeger <kseeger@samba.org>
Wed, 19 Jun 2013 08:55:34 +0000 (10:55 +0200)
commita2da5a78c48e9be6ec2ecad99ddd23d4773b2267
treeae37fb41a3923bc311fc3123e15e669c6f8bab4d
parent582d8ca565ad12133a4319650e886f58246b3bd9
Clean error paths in opendir and fd_opendir by only setting handle data on success.

Pass extra struct dirsort_privates * to open_and_sort_dir() function
to avoid it having to re-read the handle data.

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