mirror of
https://github.com/DeusData/codebase-memory-mcp.git
synced 2026-10-28 07:03:20 +08:00
TDD: two tests (overwrite read-only file, create new file) written first, then cbm_replace_binary() implemented and wired into update. The update command failed when the existing binary had no write permission (e.g., 0500). unlink() only requires write permission on the parent directory, not the file itself, so removing first then creating with O_CREAT | 0755 handles all permission combinations. Fixes #114.