Overview
| Artifact ID: | 919e3a133502e3e803ccbfee8d49a60a5fe34f8c |
|---|---|
| Ticket: | 2935503fffffffffffffffffffffffffffffffff
Incorrect mode field returned by file stat command |
| User & Date: | apnadkarni on 2010-01-20 09:25:12 |
Changes
- assignee changed to: "vincentdarley"
- cmimetype changed to: "text/plain"
- comment changed to:
From c.l.t posting by keithv - ---- Is the mode value from file stat meaningful on Windows. Under tcl 8.5, it always seems to return 0644 even if you have permission write to the file. (This problem came up when I was trying to figure out why tcllib's ftpd package wouldn't let me delete a file.) Thanks, Keith ---- Looking at the code, the problem is in the NativeStatMode function in tclWinFile.c The lines propagating the owner bits to group and others - mode |= (mode & 0x0700) >> 3; mode |= (mode & 0x0700) >> 6; should be mode |= (mode & 0700) >> 3; mode |= (mode & 0700) >> 6; (i.e. octal 700, not hex) /Ashok - foundin changed to: "None"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "apnadkarni"
- subsystem changed to: "37. File System"
- title changed to: "Incorrect mode field returned by file stat command"
- type changed to: "Bug"