So LD_PRELOAD will affect every process forked from the console.
I hit an application that was affected by the fact that fputc was being silently redirected to fwrite (despite blacklisting).
The bug (see #53) was probably due to the differences in the meaning of the return codes.
To improve safety, this change (pull request) will not redirect the calls: fputc calls fputc, fwrite calls fwrite, and both will insert coloring commands before and after.
So LD_PRELOAD will affect every process forked from the console. I hit an application that was affected by the fact that fputc was being silently redirected to fwrite (despite blacklisting). The bug (see #53) was probably due to the differences in the meaning of the return codes. To improve safety, this change (pull request) will not redirect the calls: fputc calls fputc, fwrite calls fwrite, and both will insert coloring commands before and after.