From octave-maintainers-request at bevo dot che dot wisc dot edu Wed May 21 11:53:01 1997 Subject: Bug in bug_report From: "John W. Eaton" To: Andreas Weingessel Cc: octave-maintainers at bevo dot che dot wisc dot edu Date: Wed, 21 May 1997 11:50:59 -0500 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. 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");