Tcl Source Code

View Ticket
Login
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: