Clean error paths in opendir and fd_opendir by only setting handle data on success.
commit94f7d0cdbb859842613f3c0acfeb36965f54635a
authorJeremy Allison <jra@samba.org>
Tue, 9 Apr 2013 17:29:47 +0000 (9 10:29 -0700)
committerKarolin Seeger <kseeger@samba.org>
Mon, 12 Aug 2013 07:09:43 +0000 (12 09:09 +0200)
tree69bade06bf0a9a60f16eb542e4d674cc8247d75f
parentd302cb6faee3282379d87e2c65dde392ab6a1750
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>
(cherry picked from commit a2da5a78c48e9be6ec2ecad99ddd23d4773b2267)
source3/modules/vfs_dirsort.c