Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

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

  1. 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.)
    
    
  2. login: "dkf"
  3. mimetype: "text/plain"
  4. username: "dkf"