Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4f2d9d7472790cbbb7da16ad2c80a8db3028deb2
Ticket: 723502ffffffffffffffffffffffffffffffffff
Directory Read Bug w/TCL_THREADS
User & Date: peterdrexel on 2003-04-18 05:04:31
Changes

  1. assignee changed to: "andreas_kupries"
  2. cmimetype changed to: "text/plain"
  3. 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));
    
    
  4. foundin changed to: "obsolete: 8.4.2"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "peterdrexel"
  9. subsystem changed to: "49. Threading"
  10. title changed to: "Directory Read Bug w/TCL_THREADS"
  11. type changed to: "Bug"