{"version":"2.1.331","anchor":"hard-link-and-symlink-re-check-when-reading-approved-files","canonical_anchor":"hard-link-and-symlink-re-check-when-reading-approved-files","heading":"Approved files are re-checked for hard links and symlinks before reading","tier":"notice","area":"Permissions","scope":"both","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331\/e\/hard-link-and-symlink-re-check-when-reading-approved-files","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331","markdown":"### Approved files are re-checked for hard links and symlinks before reading\n\nAfter you approve a file read, Claude Code opens that exact file and refuses it if it has since become a hard link\n\n**What**\n\nWhen you give Claude Code permission to read a file, it now holds on to that exact file and reads it through that handle. If the file has become a hard link since you approved it, Claude Code refuses to read it and says so. A hard link is a second name for the same file, so the same contents may also live somewhere else.\n\nClaude Code also now checks for a symlink, a shortcut that points to another location, where the approved folder path finally leads.\n\nBefore, the file was opened directly, and the hard link check only ran in the `CLAUDE_CODE_EVAL_CONFINED` mode.\n\n**Why**\n\nThis stops a file from being swapped for something else in the gap between your approval and the actual read.\n\n- Area: Permissions\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: both\n- Heads-up: yes"}