Overview
| Artifact ID: | 4f2d9d7472790cbbb7da16ad2c80a8db3028deb2 |
|---|---|
| Ticket: | 723502ffffffffffffffffffffffffffffffffff
Directory Read Bug w/TCL_THREADS |
| User & Date: | peterdrexel on 2003-04-18 05:04:31 |
Changes
- assignee changed to: "andreas_kupries"
- cmimetype changed to: "text/plain"
- comment changed to:
Version: TCL 8.4.2 OS: Mac OSX 10.1.5 (or any platform where TCL_THREADS is defined) Behavior: Directory entries are not read correctly when TCL commands such as glob are used. Instead the result indicates that no entries could be found. Expected Behavior: glob *.o should return a list of .o files within a directory (it there are any of course) The last argument in the call to memcpy in the function TclpReaddir in source file tclUnixThrd.c is incorrect. The sizeof operator is applied to the address of the item being copied instead of the item itself and consequently only a fraction of the necessary directory information is being copied. 8.4.2 code: memcpy((VOID *) &tsdPtr->rdbuf.ent, (VOID *) ent, sizeof(&tsdPtr->rdbuf)); should read: memcpy((VOID *) &tsdPtr->rdbuf.ent, (VOID *) ent, sizeof(tsdPtr->rdbuf)); - foundin changed to: "obsolete: 8.4.2"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "peterdrexel"
- subsystem changed to: "49. Threading"
- title changed to: "Directory Read Bug w/TCL_THREADS"
- type changed to: "Bug"