Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2013-05-20
21:18 • Closed ticket [3613567fff]: Tcl DefaultTempDir() ignores TMPDIR plus 9 other... 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 [3613567f... artifact: 468cb8c0ed user: rkeene
01:39 • Ticket [3613567fff] Tcl DefaultTempDir() ignores TMPDIR status still Open wi... artifact: 1a80b54163 user: rkeene
2013-05-18
18:32 • New ticket [3613567fff]. artifact: 619d538923 user: rkeene

Tcl DefaultTempDir() ignores TMPDIR

Closed / Fixed3613567fffffffffffffffffffffffffffffffffCreated 14 years agoUpdated 14 years ago
Descriptionplain2013-05-18 18:32:08
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.
rkeeneplain2013-05-19 01:39:12
File Added - 463422: tcl-8.6.0-bug3613567-1tmpdirfix.diff
dkfplain2013-05-20 21:18:02
allow_comments - 1

Probably my fault. :-)
Log in (anonymous is fine) to add a comment.

Attachments: