Skip to content
Tcl Source Code History Of Ticket b43efdfd61d2fbe6
Login

History Of Ticket b43efdfd61d2fbe6

Artifacts Associated With Ticket b43efdfd61d2fbe6

  1. Ticket change [6c35260fe6] (rid 170176) by agalanin on 2019-03-16 16:16:38:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      If a sub-directory is not writable, file delete -force fails on the first file in the read-only subdirectory.
      
      Platform: Debian 9.8 / Linux 4.9.0, x86_64
      
      Script to reproduce:
      
      package require fileutil
      
      set tmp [::fileutil::tempdir]
      file mkdir [set dir [file join $tmp test-[pid]-[clock seconds]]]
      file mkdir [set subdir [file join $dir subdir]]
      set f [open [file join $subdir testfile] w]
      puts $f test
      close $f
      exec chmod a-w $subdir
      file delete -force $dir
      
      Actual result:
      
      error deleting "/tmp/test-13462-1552752895/subdir/testfile": permission denied
      
      Expected result:
      
      directory removed completely, no error
      
    5. foundin initialized to: "8.6.6"
    6. is_private initialized to: "0"
    7. login: "agalanin"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "96df2f8ded1425b3d4a080bb09fa617f8bda513f"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "agalanin"
    14. subsystem initialized to: "37. File System"
    15. title initialized to:
      file delete -force does not work on read-only subdirectories
      
    16. type initialized to: "Bug"