You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4c62e31
Browse filesBrowse the repository at this point in the historyBrowse files
fix: keep private settings files private when saving and backing up
- Saving ccstatusline's settings writes a temp file and renames it over
settings.json, so the file took the temp file's default permissions:
one the user had made 0600 came back 0644. The temp file is now created
with the permissions of the file it replaces.
- The .bak and .orig backups of Claude Code's settings.json were created
0644 whatever settings.json's permissions were, and that file can hold
secrets (env, apiKeyHelper). Backups now get settings.json's
permissions. An existing backup is removed first, since overwriting a
file keeps its old permissions.
0 commit comments