[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #48326] mkstemp opens file in text mode on Win
From: |
Mike Miller |
Subject: |
[Octave-bug-tracker] [bug #48326] mkstemp opens file in text mode on Windows (test printd fails) |
Date: |
Mon, 11 Jul 2016 19:13:48 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0 |
Follow-up Comment #16, bug #48326 (project octave):
Thanks for all the testing. We'll still need someone willing to help test or
debug mkstemp or fdopen on Windows.
The reason mkstemp is safer is because it opens a temporary file for you and
gives you the name of the file in one atomic operation. If you call a function
like tempname() to just get a string, and then subsequently open the file,
there is the possibility that someone has intercepted that file name and
opened it before you.
Of course if you always create temporary files in a per-user unique temporary
directory this is slightly mitigated, although still at risk to those with
root level permissions on the system.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?48326>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #48326] test printd fails in Win-7, Mike Miller, 2016/07/08
- [Octave-bug-tracker] [bug #48326] test printd fails in Win-7, Philip Nienhuis, 2016/07/09
- Message not available
- [Octave-bug-tracker] [bug #48326] test printd fails in Win-7, Philip Nienhuis, 2016/07/09
- [Octave-bug-tracker] [bug #48326] test printd fails in Win-7, Mike Miller, 2016/07/09
- [Octave-bug-tracker] [bug #48326] test printd fails in Win-7, Philip Nienhuis, 2016/07/10
- [Octave-bug-tracker] [bug #48326] test printd fails in Win-7, Philip Nienhuis, 2016/07/11
- [Octave-bug-tracker] [bug #48326] mkstemp opens file in text mode on Windows (test printd fails), Mike Miller, 2016/07/11
- [Octave-bug-tracker] [bug #48326] mkstemp opens file in text mode on Windows (test printd fails), Philip Nienhuis, 2016/07/11
- [Octave-bug-tracker] [bug #48326] mkstemp opens file in text mode on Windows (test printd fails), Mike Miller, 2016/07/11
- [Octave-bug-tracker] [bug #48326] mkstemp opens file in text mode on Windows (test printd fails), Philip Nienhuis, 2016/07/11
- [Octave-bug-tracker] [bug #48326] mkstemp opens file in text mode on Windows (test printd fails),
Mike Miller <=
- [Octave-bug-tracker] [bug #48326] mkstemp opens file in text mode on Windows (test printd fails), Mike Miller, 2016/07/11
- [Octave-bug-tracker] [bug #48326] mkstemp opens file in text mode on Windows (test printd fails), Philip Nienhuis, 2016/07/11
- [Octave-bug-tracker] [bug #48326] mkstemp opens file in text mode on Windows (test printd fails), Philip Nienhuis, 2016/07/12
- [Octave-bug-tracker] [bug #48326] mkstemp opens file in text mode on Windows (test printd fails), Mike Miller, 2016/07/12
- [Octave-bug-tracker] [bug #48326] mkstemp opens file in text mode on Windows (test printd fails), Lachlan Andrew, 2016/07/12
- [Octave-bug-tracker] [bug #48326] mkstemp opens file in text mode on Windows (test printd fails), Mike Miller, 2016/07/12