ctdb-protocol: Avoid fgets in ctdb_connection_list_read
authorAmitay Isaacs <amitay@gmail.com>
Wed, 11 Jul 2018 08:35:46 +0000 (18:35 +1000)
committerMartin Schwenke <martins@samba.org>
Sat, 28 Jul 2018 01:50:11 +0000 (03:50 +0200)
commitc9b42d27e6cf9e6ae36f44970f0a388edc737a7a
tree4073901f56d677e69bfd059c766c13dea8390a54
parentc7041b0faf490661818244dd032ad413ce906e5c
ctdb-protocol: Avoid fgets in ctdb_connection_list_read

C library buffering API can behave in unexpected fashion if underlying
fd for stdin, stdout or stderr is closed and re-opened.

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

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
ctdb/protocol/protocol_util.c
ctdb/wscript