Overview
| Artifact ID: | b858176953c7da70c4ea37ba0e9c94436d3ffead |
|---|---|
| Ticket: | 889182ffffffffffffffffffffffffffffffffff
filesystem-7-7 fails |
| User & Date: | dgp on 2004-02-02 17:17:00 |
Changes
- assignee changed to: "vincentdarley"
- cmimetype changed to: "text/plain"
- comment changed to:
On Solaris 9: ==== filesystem-7.7 cross-filesystem dir copy with -force FAILED ==== Contents of test case: set dir [pwd] cd [tcltest::temporaryDirectory] file delete -force simpledir file mkdir simpledir file mkdir dir2 set fout [open [file join simpledir simplefile] w] puts -nonewline $fout "1234567890" close $fout testsimplefilesystem 1 # First copy should succeed set res [catch {file copy simplefs:/simpledir dir2} err] lappend res $err file attributes dir2 -permissions 0000 # Second copy should fail (no -force) lappend res [catch {file copy simplefs:/simpledir dir2} err] lappend res $err # Third copy should succeed (-force) # I've noticed on some Unices that this only succeeds # intermittently (some runs work, some fail). This needs # examining further. lappend res [catch {file copy -force simplefs:/simpledir dir2} err] lappend res $err lappend res [file exists [file join dir2 simpledir]] [file exists [file join dir2 simpledir simplefile]] testsimplefilesystem 0 file delete -force simpledir file delete -force dir2 cd $dir set res ---- Result was: 0 {} 1 {error copying "simplefs:/simpledir" to "dir2/simpledir": permission denied} 1 {error copying "simplefs:/simpledir" to "dir2/simpledir": permission denied} 0 0 ---- Result should have been (exact matching): 0 {} 1 {error copying "simplefs:/simpledir" to "dir2/simpledir": file already exists} 0 {} 1 1 ==== filesystem-7.7 FAILED - foundin changed to: "obsolete: 8.5a0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "dgp"
- subsystem changed to: "37. File System"
- title changed to: "filesystem-7-7 fails"
- type changed to: "Bug"