chiark / gitweb /
fileio: write_string_stream_ts: return errors from fputs and fputc
authorMike Gilbert <floppym@gentoo.org>
Thu, 28 Dec 2017 02:46:52 +0000 (21:46 -0500)
committerSven Eden <yamakuzure@gmx.net>
Wed, 30 May 2018 05:49:46 +0000 (07:49 +0200)
commit340b6a239d1d117da7e40c436a4751c9d56efbd7
tree1d2cb818c53dd9ede70a45d3b9be9d648ca6da82
parent9376a8929700bfe3d2d45a41d9e66232ca9ec9dd
fileio: write_string_stream_ts: return errors from fputs and fputc

Ignoring errors from these functions may mask errors returned by the
kernel.

Fixes: https://github.com/systemd/systemd/issues/7744
src/basic/fileio.c