Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 2edc0fe89c0101894fe5a4959ecbfad18e9005fb
Ticket: 511658ffffffffffffffffffffffffffffffffff
'file attributes c:/' returns 'hidden 1'
User & Date: vincentdarley on 2002-02-01 11:10:01
Changes

  1. assignee changed to: "kennykb"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    (On Windows 2000sp2)
    
    % file attributes c:/
    -archive 1 -hidden 1 -longname C:/ -readonly 0 -
    shortname C:/ -system 1
    % file attributes D:/
    -archive 1 -hidden 1 -longname D:/ -readonly 0 -
    shortname D:/ -system 1
    % file attributes E:/
    -archive 0 -hidden 0 -longname E:/ -readonly 0 -
    shortname E:/ -system 0
    % file attributes c:/apps
    -archive 0 -hidden 0 -longname C:/Apps -readonly 0 -
    shortname C:/Apps -system 0
    
    I would expect all of these to return 'hidden 0'.
    
    I have 3 partitions. 'c:' and 'd:' are NTFS and 'e:' 
    is a FAT32 partition.  It seems as if 'file 
    attributes -hidden' returns the wrong value for NTFS 
    partitions (but not for directories such as 'c:/apps' 
    which are in NTFS partitions).
    
    Some quick debugging shows that:
    
       DWORD attr = (*tclWinProcs->getFileAttributesProc)
    (nativeName);
    
    returns 'attr = 54', where 'nativeName' is the native 
    representation of 'c:/'.
    
    What is the right way to fix this?  It turns out that 
    this is also relevant to fixing another bug (which I'm 
    working on offline), that both 'glob -types hidden 
    c:/' and 'glob c:/' return the same thing.
    
    A fix is needed on line 1316 of tclWinFCmd.c (of 
    latest cvs head).  The bug exists in Tcl 8.3 as well 
    (from which the above results were taken).
    
    
    
    
  4. foundin changed to: "obsolete: 8.4a4"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "vincentdarley"
  9. subsystem changed to: "37. File System"
  10. title changed to: "'file attributes c:/' returns 'hidden 1'"
  11. type changed to: "Bug"