mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
By default, files opened via fopen are block-buffered. As a result, I/O errors that occur during file write operations via util_file_write_* are silently ignored because fputs() only buffers data while actual I/O occurs during the flush operation that is part of the final fclose() library call. Fix this by indicating errors that occur during fclose() via the util_file_write_* function return code. Reviewed-by: Jan Höppner <hoeppner@linux.ibm.com> Signed-off-by: Peter Oberparleiter <oberpar@linux.ibm.com> Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
15 KiB
15 KiB