View Ticket
Not logged in
2013-05-20
21:18 Closed ticket [3613567fff]: Tcl DefaultTempDir() ignores TMPDIR plus 9 other changes artifact: 8fbfec8c68 user: dkf
14:17
[3613567]: Corrected sense of test on results of access() in temp file creation. check-in: 98e89843c0 user: dkf tags: trunk
2013-05-19
01:39 Add attachment tcl-8.6.0-bug3613567-1tmpdirfix.diff to ticket [3613567fff] artifact: 468cb8c0ed user: rkeene
01:39 Ticket [3613567fff] Tcl DefaultTempDir() ignores TMPDIR status still Open with 4 other changes artifact: 1a80b54163 user: rkeene
2013-05-18
18:32 New ticket [3613567fff]. artifact: 619d538923 user: rkeene

Ticket UUID: 3613567
Title: Tcl DefaultTempDir() ignores TMPDIR
Type: Bug Version: current: 8.6.0
Submitter: rkeene Created on: 2013-05-18 18:32:08
Subsystem: 37. File System Assigned To: dkf
Priority: 8 Severity:
Status: Closed Last Modified: 2013-05-20 21:18:02
Resolution: Fixed Closed By: dkf
    Closed on: 2013-05-20 14:18:02
Description:
DefaultTempDir() in unix/tclUnixFCmd.c will only process TMPDIR if it is *NOT* writable.  This is because it fails to correctly handle the return value from access().

The two calls to access() in this function are:

        access(dir, W_OK)
and should be:
        access(dir, W_OK) == 0

Patch attached in first update.
User Comments: dkf added on 2013-05-20 21:18:02:

allow_comments - 1

Probably my fault. :-)

rkeene added on 2013-05-19 01:39:12:

File Added - 463422: tcl-8.6.0-bug3613567-1tmpdirfix.diff

Attachments:

  • tcl-8.6.0-bug3613567-1tmpdirfix.diff [download] added by rkeene on 2013-05-19 01:39:12. [details]