{"version":"2.1.296","anchor":"atomic-file-write-preserves-ownership-changes","canonical_anchor":"atomic-file-write-preserves-ownership-changes","heading":"Safe file writes now change file owner and permissions in a safer order","tier":"internal","area":"File Editing","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.296\/e\/atomic-file-write-preserves-ownership-changes","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.296","markdown":"### Safe file writes now change file owner and permissions in a safer order\n\nWhen Claude Code safely replaces a file, it now changes the owner and permissions in a safer order and reports failures clearly\n\n**What**\n\nClaude Code saves some files by writing a complete new copy and then swapping it in, so a file is never left half written. That process can now change a file from one owner to another, and it does this in a safer order relative to changing the file's permissions. If changing the owner fails, Claude Code reports it as a distinct error. When no change of owner is asked for, the file keeps only its owner's permissions.\n\nBefore, Claude Code changed the owner once, always before the permissions.\n\n**Why**\n\nThis shortens the moment when a file could have the wrong owner or the wrong permissions.\n\n- Area: File Editing\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}