On 11/11/2010 05:09 PM, Bruce Korb wrote: > This patch modifies lib/error.c so that should someone > call it without having set program_name, then a message > is printed and abort() called instead of seg faulting.
It's not clear that this is a win. The current code, in glibc and in most other C libraries, doesn't segfault if you don't set the program name, and people might prefer this to an abrupt termination. I agree with Eric that there must be a less-intrusive way to make the change, assuming people want it. There should be no need for that #ifdef HPUX, among other things.