Overview
| Artifact ID: | 2edc0fe89c0101894fe5a4959ecbfad18e9005fb |
|---|---|
| Ticket: | 511658ffffffffffffffffffffffffffffffffff
'file attributes c:/' returns 'hidden 1' |
| User & Date: | vincentdarley on 2002-02-01 11:10:01 |
Changes
- assignee changed to: "kennykb"
- cmimetype changed to: "text/plain"
- 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).
- foundin changed to: "obsolete: 8.4a4"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "vincentdarley"
- subsystem changed to: "37. File System"
- title changed to: "'file attributes c:/' returns 'hidden 1'"
- type changed to: "Bug"