Tcl Source Code

Ticket Change Details
Bounty program for improvements to Tcl and certain Tcl packages.
Tcl 2019 Conference, Houston/TX, US, Nov 4-8
Send your abstracts to [email protected]
or submit via the online form by Sep 9.

Artifact ID: 6c35260fe62a23d83dd0e560ba8223b153e649243a4493ed381fab9e0eef3b8e
Ticket: b43efdfd61d2fbe670fdd1ebcbfce7a999c6bef0
file delete -force does not work on read-only subdirectories
User & Date: agalanin 2019-03-16 16:16:38

  1. Change assignee to "nobody"
  2. Change closer to "nobody"
  3. Change cmimetype to "text/plain"
  4. Change comment 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. Change foundin to "8.6.6"
  6. Change is_private to "0"
  7. Change login to "agalanin"
  8. Change priority to "5 Medium"
  9. Change private_contact to "96df2f8ded1425b3d4a080bb09fa617f8bda513f"
  10. Change resolution to "None"
  11. Change severity to "Minor"
  12. Change status to "Open"
  13. Change submitter to "agalanin"
  14. Change subsystem to "37. File System"
  15. Change title to:
    file delete -force does not work on read-only subdirectories
  16. Change type to "Bug"