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

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

[Octave-bug-tracker] [bug #43844] tmpnam() ignores dir parameter if syst


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #43844] tmpnam() ignores dir parameter if systems temporary dir environment variable is set.
Date: Sun, 21 Dec 2014 16:21:35 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.2.0

Follow-up Comment #5, bug #43844 (project octave):

I looked back to when the tmpnam function was added to Octave, and it looks
like there was never a time when it was a simple wrapper for the C library
tmpnam function.  Instead it called tempnam.  I don't know why exactly.  Then
sometime later I assume the handling of the DIR and PREFIX arguments was
added.

Rik, I agree that it is probably easier to just rewrite the file name.  I
tried your patch and now if I try someething like tmpnam  ("/home", ""), the
result is "/home/".  Without the patch it was something like
"/home/fileFH6WIK".  Was that intentional?



    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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