Artifacts Associated With Ticket 2935503
Ticket change [919e3a1335] (rid 120648) by apnadkarni on 2010-01-20 09:25:12:
- assignee initialized to: "vincentdarley"
- cmimetype initialized to: "text/plain"
- comment initialized 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 initialized to: "None"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "apnadkarni"
- subsystem initialized to: "37. File System"
- title initialized to: "Incorrect mode field returned by file stat command"
- type initialized to: "Bug"
Ticket change [2f989fbd1d] (rid 93085) by apnadkarni on 2011-08-25 22:21:49:
- assignee changed to: "dgp"
- icomment:
Reassigned to dgp as per instruction from him
- login: "apnadkarni"
- mimetype: "text/plain"
- username: "apnadkarni"
Ticket change [1134f8e03d] (rid 95104) by nijtmans on 2011-10-11 20:39:22:
- closedate changed to: "2011-10-11T13:39:22"
- closer changed to: "nijtmans"
- foundin changed to: "obsolete: 8.4.19"
- icomment:
This one is so trivial, just let's fix it..... Test io-40.2, which was previously unix-only adapted to show how valid this bug report is. Fixed in all open branches.
- login: "nijtmans"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Pending"
- username: "nijtmans"
Ticket change [48289159ac] (rid 99833) by dgp on 2011-10-13 00:24:34:
- icomment:
Test fails in a tcl/unix build on OSX Snow Leopard: ==== io-40.2 POSIX open access modes: CREAT FAILED ==== Contents of test case: file delete $path(test3) set f [open $path(test3) {WRONLY CREAT} 0o666] file stat $path(test3) stats set x [format "0o%o" [expr $stats(mode)&0o777]] puts $f "line 1" close $f set f [open $path(test3) r] lappend x [gets $f] close $f set x ---- Result was: 0o644 {line 1} ---- Result should have been (exact matching): 0o666 {line 1} ==== io-40.2 FAILED - login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [cc4997b33e] (rid 95670) by dgp on 2011-10-13 01:43:15:
- icomment:
Same failure on Centos system.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [c3bde7acd5] (rid 111716) by dgp on 2011-10-13 01:46:55:
- assignee changed to: "nijtmans"
- icomment:
Just because we ask for permissions 0o666 doesn't mean we'll get them depending on what permissions we have on the containing dir.
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "None"
- status changed to: "Open"
- username: "dgp"
Ticket change [1efaee618b] (rid 91069) by andreas_kupries on 2011-10-13 01:53:39:
- icomment:
And the user's 'umask' settings in the current shell may effect results too.
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [af678e9d12] (rid 97806) by nijtmans on 2011-10-13 15:04:21:
- closedate changed to: "2011-10-13T08:04:21"
- closer changed to: "nijtmans"
- icomment:
Reverting test-case, als the actual change is Windows-only anyway. So it was not that trivial.......
- login: "nijtmans"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Pending"
- username: "nijtmans"
Ticket change [dfcf82b4f6] (rid 115078) by nijtmans on 2012-06-22 20:01:56:
- closedate changed to: "2012-06-22T13:01:56"
- closer changed to: "nijtmans"
- icomment:
allow_comments - 1
- login: "nijtmans"
- mimetype: "text/plain"
- status changed to: "Closed"
- username: "nijtmans"