# HG changeset patch # User Jaroslav Hajek # Date 1260800546 -3600 # Node ID 7cef030b806966143094d27299499da2b0103f9d # Parent 692ab4eaf9659d7c1baaadb3369bc7dd9905729c let __makeinfo__ create temporary file in P_tmpdir diff -r 692ab4eaf965 -r 7cef030b8069 scripts/ChangeLog --- a/scripts/ChangeLog Mon Dec 14 12:11:53 2009 +0100 +++ b/scripts/ChangeLog Mon Dec 14 15:22:26 2009 +0100 @@ -1,3 +1,7 @@ +2009-12-14 Jaroslav Hajek + + * help/__makeinfo__.m: Use P_tmpdir to create temporary file. + 2009-12-09 Rik * polynomial/module.mk: Correct typo and distribute newly created ppder.m diff -r 692ab4eaf965 -r 7cef030b8069 scripts/help/__makeinfo__.m --- a/scripts/help/__makeinfo__.m Mon Dec 14 12:11:53 2009 +0100 +++ b/scripts/help/__makeinfo__.m Mon Dec 14 15:22:26 2009 +0100 @@ -124,7 +124,11 @@ unwind_protect ## Write Texinfo to tmp file - [fid, name, msg] = mkstemp ("octave_help_XXXXXX", true); + template = "octave_help_XXXXXX"; + [fid, name, msg] = mkstemp ([P_tmpdir, filesep, template], true); + if (fid < 0) + error ("__makeinfo__: could not create temporary file"); + endif fwrite (fid, text); fclose (fid);