From octave-maintainers-request at bevo dot che dot wisc dot edu Thu May 22 01:54:02 1997 Subject: Re: Bug in bug_report From: Andreas Weingessel To: "John W. Eaton" Cc: octave-maintainers at bevo dot che dot wisc dot edu Date: Thu, 22 May 1997 08:54:05 +0200 >>>>> On Wed, 21 May 1997 11:50:59 -0500, >>>>> John W Eaton wrote: > On 21-May-1997, Andreas Weingessel wrote: > | To: octave-maintainers at bevo dot che dot wisc dot edu > | Subject: Bug in bug_report > | > | Bug report for Octave 2.0.5.90 configured for i586-pc-linux-gnu > | > | Description: > | ----------- > | > | After sending or aborting a bug report octave prints a temporary file > | name several times. > Please try the following patch. This patch works fine, thanks Andreas Weingessel > Thanks, > jwe > Wed May 21 11:45:31 1997 John W. Eaton > * miscellaneous/bug_report.m: Pass file id to dump_prefs, not file > name. > diff -c -r1.16 bug_report.m > *** bug_report.m 1997/03/27 16:19:07 1.16 > --- bug_report.m 1997/05/21 16:46:11 > *************** > *** 42,50 **** > prefs = tmpnam (); > if (! isempty (prefs)) > ! fopen (prefs, "w"); > ! dump_prefs (prefs); > ! fclose (prefs); > endif > cmd = strcat (OCTAVE_HOME, "/bin/octave-bug"); > --- 42,52 ---- > prefs = tmpnam (); > if (! isempty (prefs)) > ! fid = fopen (prefs, "w"); > ! if (fid > 0) > ! dump_prefs (fid); > ! fclose (fid); > ! endif > endif > cmd = strcat (OCTAVE_HOME, "/bin/octave-bug");