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 doesnt provide unique temport


From: John Donoghue
Subject: [Octave-bug-tracker] [bug #43872] tempname doesnt provide unique temporty name in Windows.
Date: Mon, 22 Dec 2014 18:19:52 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko

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

                 Summary: tempname doesnt provide unique temporty name in
Windows.
                 Project: GNU Octave
            Submitted by: lostbard
            Submitted on: Mon 22 Dec 2014 06:19:50 PM GMT
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Regression
                  Status: None
             Assigned to: None
         Originator Name: JohnD
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

Under windows, the temporary file naming is rather deterministic, and each
time I run octave, I can see the sequence of file names used.

In part because of that, if specifying your own directory, the temporary name
may already exist.

For example, if I have a directory c:\\temp\\oct-2.

On first call of tempname:


>> a = tempname("c:\\temp")
a = c:\temp\oct-2
>>


The fix for Bug 43844 [1]  makes the function no longer check if it is/was a
unique temporary name.

The Linux tempnam function provides a more random filename and so is less
likely to already exist.


[1] https://savannah.gnu.org/bugs/?43844






    _______________________________________________________

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]