vfs_default: Fix passing of errno from async calls
authorChristof Schmitt <cs@samba.org>
Wed, 23 Aug 2017 21:37:28 +0000 (14:37 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 23 Aug 2017 23:46:08 +0000 (01:46 +0200)
commita6f391b8dd1fbfd1a370667dec1374284984c341
tree057521e1eaebcec698a53f871a7a28f468eccd91
parent48815f8c3ed54edc418018b991c222e317302602
vfs_default: Fix passing of errno from async calls

Current code assigns errno from async pthreadpool calls to the
vfs_default internal vfswrap_*_state.  The callers of the vfs_*_recv
functions expect the value from errno in vfs_aio_state.error.

Correctly assign errno to vfs_aio_state.error and remove the unused
internal err variable.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12983

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_default.c