gnc_log_init: Be more robust in log file open failure case
Stephen Evanchik
evanchsa at clarkson.edu
Wed Dec 1 21:24:38 EST 2004
This should patch against HEAD and gnucash-gnome2-dev.
Bug:
If /tmp/gnucash.trace is not accessible by the user then gnucash will
segfault because the fopen in gnc_log_init returned a NULL FILE stream.
Summary of changes:
gnc_log_init will now attempt to open trace files in this order:
/tmp/gnucash.trace
if that fails,
/tmp/gnucash.trace.<PID of gnucash>
and if that fails debug output will go to STDERR.
Files affected:
src/engine/gnc-trace.c
Stephen Evanchik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gnc-trace.c.patch
Type: text/x-patch
Size: 1073 bytes
Desc: not available
Url : http://lists.gnucash.org/pipermail/gnucash-patches/attachments/20041201/dda9289a/gnc-trace.c.bin
More information about the gnucash-patches
mailing list