Overview
| Artifact ID: | a6f3770196f3f0fb597c1a0daddcd47db3347d14 |
|---|---|
| Ticket: | 219139ffffffffffffffffffffffffffffffffff
file delete -force does not work on read-only directories |
| User & Date: | dkf on 2001-09-04 16:48:21 |
Changes
- icomment:
Logged In: YES user_id=79902 I'd guess the permissions to be 0700; don't care about losing perms for other people as the dir is about to be nuked anyway. Though if the delete then fails, we must restore the perms to what they were before since the failure might be due to another process owned by another user using that dir as a working directory and making it fail in that case is not too good. I think... The classic way to test this is (I suppose) to create a directory with a file in it, change its permissions to something aggressively unreadable, and then attempt to delete it. We can then force an unfixable failure by putting a subprocess in there (which would also be good for making sure that the permissions don't end up too screwed in the case of a failure.)
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"