Clean error paths in opendir and fd_opendir by only setting handle data on success.
commit7e437a39abaee1133ea4c30e75ef53eb47ca64b6
authorJeremy Allison <jra@samba.org>
Tue, 9 Apr 2013 17:29:47 +0000 (9 10:29 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 11 Apr 2013 16:49:41 +0000 (11 09:49 -0700)
treea7af01ec9a2cf990afdfafd9934a39d3e147b897
parentcdcb6319127883d724508da3f6140a1e2aca75af
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