![thorpej](/assets/img/avatar_default.png)
to write it. fwrite(3) is a noop in that case anyway, and the error detection logic here was screwing up on the 0 return from fwrite(3) (that return value is mandated by SUSv2 for size or count of 0). While here, improve the error messgages given to the user.