diff --git a/scripts/help/__makeinfo__.m b/scripts/help/__makeinfo__.m --- a/scripts/help/__makeinfo__.m +++ b/scripts/help/__makeinfo__.m @@ -150,8 +150,8 @@ unwind_protect ## Write Texinfo to tmp file - template = "octave-help-XXXXXX"; - [fid, name, msg] = mkstemp (fullfile (P_tmpdir, template), true); + name = tmpnam (); + fid = fopen (name, "w"); if (fid < 0) error ("__makeinfo__: could not create temporary file"); endif