From: Nguyễn Thái Ngọc Duy Date: Sun, 30 Nov 2014 08:24:46 +0000 (+0700) Subject: use new wrapper write_file() for simple file writing X-Git-Tag: v2.5.0-rc0~143^2~20 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/91aacda85a91192a9f66a0f175d739f77971412f?ds=inline;hp=91aacda85a91192a9f66a0f175d739f77971412f use new wrapper write_file() for simple file writing This fixes common problems in these code about error handling, forgetting to close the file handle after fprintf() fails, or not printing out the error string.. Signed-off-by: Nguyễn Thái Ngọc Duy Signed-off-by: Junio C Hamano ---