Re: fortune bug ?
On Tuesday 31 May 2005 14:41, Aurélien Campéas wrote:
> if (stat(file, &staat) == 0)
> perror("fortune: bad juju in is_existant");
> Do someone knows a tool to expose the call graph of a C program ?
The easiest way might be to run it through strace (strace 2>log fortune), find
(near the end of the log) where it writes that error message, then look for
the first stat() call before that in the same log. Hopefully it'll show what
it's trying to access.
Please do not CC replies directly to me. I'll read them on the list.