{"version":"2.1.333","anchor":"file-writes-refuse-hard-linked-copy-sources-and-fall-back-di","canonical_anchor":"file-writes-refuse-hard-linked-copy-sources-and-fall-back-di","heading":"File copies refuse hard-linked sources, and log writes refuse links","tier":"notice","area":"File Tools","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/file-writes-refuse-hard-linked-copy-sources-and-fall-back-di","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### File copies refuse hard-linked sources, and log writes refuse links\n\nClaude Code now refuses to copy a file that has a second name (a hard link), and changes how a failed safe write retries\n\n**What**\n\nClaude Code has several new safeguards for writing files:\n\n- Copying a file can now be refused when the source has a second name. A second name is a hard link, meaning two paths point to the same file. The error says \"it has a second name (a hard link)\".\n\n- Some writes go to a temporary staging location first and are then moved into place. If that move fails because the two locations are on different disks, Claude Code now retries without the staging location when the sandbox may be off. The sandbox is the restricted environment some commands run in.\n\n- Adding to the diagnostics log can now refuse targets that are symbolic links, hard links or anything that is not a plain file. This is behind a remote switch.\n\n**Why**\n\nThis makes file writes harder to redirect with link tricks, where a link makes a write land somewhere it was not meant to.\n\n- Area: File Tools\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: yes"}