nsswitch: Fix short writes in winbind_write_sock
commit8d4f2708b77d917b693d361be37cee69eb14e7e4
authorVolker Lendecke <vl@samba.org>
Tue, 15 Oct 2013 08:23:10 +0000 (15 08:23 +0000)
committerKarolin Seeger <kseeger@samba.org>
Mon, 28 Oct 2013 13:51:21 +0000 (28 14:51 +0100)
tree8b5e8d79a7ea21664118c1178f30e3dd49e8d8f6
parenta918e7dc0c2096b96495ee5ac0115bd451aa6d69
nsswitch: Fix short writes in winbind_write_sock

We set the socket to nonblocking and don't handle EAGAIN right. We do
a poll anyway, so wait for writability, which should fix this.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=10195
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
(cherry picked from commit c6909887c26d4e827633acd50b11cf08c6aee0f7)
Signed-off-by: Andreas Schneider <asn@samba.org>
Autobuild-User(v4-0-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-0-test): Mon Oct 28 14:51:22 CET 2013 on sn-devel-104
nsswitch/wb_common.c