llvm-project
014265f0 - [Support][vfs] Remove can_write check when replacing file (#219540)

Commit
74 days ago
[Support][vfs] Remove can_write check when replacing file (#219540) Remove the can_write check when the file is to be replaced. can_write checks the permission bits of the file itself, but OnDiskOutputFile::keep() will delete and replace the file for which the permission bits of the parent directory are the relevant ones. Keep the check in append mode where the file is actually opened for writing. The check causes problems with ccache which removes write permission in hard_link mode to protect its cache. The file can still be replaced.
Author
Parents
Loading