Overview
| Artifact ID: | 59328670a362229a6c86cdc75c648bd6c6b6bf32e7bbe0baf462fd1623f4d6f1 |
|---|---|
| Ticket: | 27b682284974d0cdf4686f31adcb9ee39a0befa6
file delete can return an error if file was already deleted |
| User & Date: | raimue on 2018-04-06 14:05:10 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
The 'file delete' command can fail with "no such file or directory", but it is supposed to return successfully in this case. This can happen when another process removes the file exactly between the system calls to stat(2) and unlink(2) in TclFileDeleteCmd(), which is a classic TOCTTOU race condition. I will attach a patch that adds an additional check for the result of Tcl_FSDeleteFile() and if it was ENOENT, the command is considered successful.
- foundin changed to: "8.5"
- is_private changed to: "0"
- login: "raimue"
- priority changed to: "5 Medium"
- private_contact changed to: "6a91daf82c63c43a25145a0cf9805b11645e1aa7"
- resolution changed to: "None"
- severity changed to: "Minor"
- status changed to: "Open"
- submitter changed to: "raimue"
- subsystem changed to: "37. File System"
- title changed to:
file delete can return an error if file was already deleted
- type changed to: "Patch"