Overview
| Artifact ID: | f4a3b397f93973ae6364fa585134f24f087d0b4f |
|---|---|
| Ticket: | 2879351fffffffffffffffffffffffffffffffff
file writable broken on Windows |
| User & Date: | dkf on 2013-09-24 22:04:22 |
Changes
- assignee changed to: "aku"
- closedate changed to: "2456560.41970968"
- closer changed to: "dkf"
- comment changed to:
This is a dup of bug #2857875, which was closed by SF while I was off having a baby. The following script was run on a Vista 32 bit installation with the given results: puts "Tcl Version = [info patchlevel]" set file tmp[pid].txt foreach dir [list C:/ "C:/Program Files" $::env(LOCALAPPDATA)] { if {[file writable $dir]} { puts "$dir is writable" } else { puts "$dir is not writable" } if {[catch {close [open [file join $dir $file] w]} err]} { puts "Could not create file in $dir" } else { puts "Created file in $dir" file delete [file join $dir $file] } } Results: Tcl Version = 8.4.12 C:/ is writable Could not create file in C:/ C:/Program Files is not writable Created file in C:/Program Files C:\Users\vmuser\AppData\Local is writable Created file in C:\Users\vmuser\AppData\Local Tcl Version = 8.4.13 C:/ is not writable Could not create file in C:/ C:/Program Files is not writable Created file in C:/Program Files C:\Users\vmuser\AppData\Local is writable Created file in C:\Users\vmuser\AppData\Local Tcl Version = 8.6b1.1 C:/ is not writable Could not create file in C:/ C:/Program Files is not writable Created file in C:/Program Files C:\Users\vmuser\AppData\Local is writable Created file in C:\Users\vmuser\AppData\Local And, running as Administrator: Tcl Version = 8.6b1.1 C:/ is writable Created file in C:/ C:/Program Files is writable Created file in C:/Program Files C:\Users\vmuser\AppData\Local is writable Created file in C:\Users\vmuser\AppData\Local Please tell me if there's anything else I can test or any other information you need. - login: "dkf"
- mimetype: "text/plain"
- severity changed to: "Minor"
- status changed to: "Closed"