|
2019-03-16
| ||
| 16:16 | • New ticket [b43efdfd61] file delete -force does not work on read-only subdirecto... artifact: 6c35260fe6 user: agalanin | |
file delete -force does not work on read-only subdirectories
Openb43efdfd61d2fbe670fdd1ebcbfce7a999c6bef0Created 8 years agoUpdated 8 years ago
Descriptionplain2019-03-16 16:16:38
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
Log in (anonymous is fine) to add a comment.