vfs_default: Fix passing of errno from async calls
commit76da233af1693d38482527bf054ec364f8ed21e5
authorChristof Schmitt <cs@samba.org>
Wed, 23 Aug 2017 21:37:28 +0000 (23 14:37 -0700)
committerKarolin Seeger <kseeger@samba.org>
Mon, 28 Aug 2017 12:42:02 +0000 (28 14:42 +0200)
treeb684ea86ce70e1e2d19c2adf0571d8556aebe2ce
parent85063757ad2f437af1b70df6b194993e045b84c8
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>
(cherry picked from commit a6f391b8dd1fbfd1a370667dec1374284984c341)

Autobuild-User(v4-6-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-6-test): Mon Aug 28 14:42:02 CEST 2017 on sn-devel-144
source3/modules/vfs_default.c