octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #43872] tempname does not provide unique tempo


From: Rik
Subject: [Octave-bug-tracker] [bug #43872] tempname does not provide unique temporary name in Windows.
Date: Thu, 25 Dec 2014 16:32:10 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:34.0) Gecko/20100101 Firefox/34.0

Follow-up Comment #7, bug #43872 (project octave):

Rather than write our own routines to re-perform the work of tempnam, I think
it would be better to use whatever we can from gnulib.

One way would be to check for the appropriate environment variable and the dir
arg being set, and in such a case use unsetenv temporarily before calling
tempnam.

Another choice would be to use get_tempname from gnulib directly.  See
https://github.com/gagern/gnulib/blob/master/lib/tempname.h.
In this case we set up the template string with either P_tmpdir or the dir_arg
if it is set and then call get_tempname.


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?43872>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]