Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7881959b1ec6ffd6af5967741b3589b1940d1f49
Ticket: 2015723fffffffffffffffffffffffffffffffff
duplicate inodes from file stat on windows
User & Date: patthoyts on 2008-07-21 19:29:23
Changes

  1. icomment:
    Logged In: YES 
    user_id=202636
    Originator: NO
    
    Looks like this is probably the problem (tclWinFile.c:2077):
            /*
             * Unfortunately our stat definition's inode field (unsigned short)
             * will throw away most of the precision we have here, which means we
             * can't rely on inode as a unique identifier of a file. We'd really
             * like to do something like how we handle 'st_size'.
             */
    
            inode = data.nFileIndexHigh | data.nFileIndexLow;
    Compiling with MSVC6, Tcl_StatBuf is a _stati64 and the st_ino member is a _ino_t which is declared in TYPES.H to be unsigned short.
    
    I guess this comes under a general heading of Tcl_Stat crappiness - but why are we depending upon an inode value in 'rename' anyway? That would seem to be the bug.
    
    
  2. login: "patthoyts"
  3. mimetype: "text/plain"
  4. username: "patthoyts"