Overview
| Artifact ID: | 47b7e228b7bd96a929774f026b9dd9071c197294 |
|---|---|
| Ticket: | 219139ffffffffffffffffffffffffffffffffff
file delete -force does not work on read-only directories |
| User & Date: | vincentdarley on 2001-09-04 19:57:24 |
Changes
- icomment:
Logged In: YES user_id=32170 I considered doing that, perhaps combining the function with the (existing) 'TclpCreateTempFile' which is above. I appreciate the comment about 'tmpnam'; the approach in the patch does have the benefit that the file actually exists (even though we closed it), so I don't think an attacker can mess with it. What happens next is that we overwrite the existing file. All in all I didn't see massive benefits from returning both the name and the channel. While avoiding the 'open- close-open' behaviour of the current code, in other ways it complicates things (the Win/Mac ports must explicitly open the temp file, the file handle must be converted to a Tcl_Channel in all three platforms, we need to modify the shared CrossFilesystemCopy, etc...) Anyway, I don't feel that strongly about it, so am happy to be argued back (!). Does the patch actually compile and pass the tests?
- login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"