mirror of
https://github.com/borgbackup/borg.git
synced 2026-10-12 02:11:36 +00:00
Without the object, the commands silently fell back to the built-in defaults, so anybody with write access to the store could remove a repository default (e.g. an "obfuscate" compression) unnoticed: the key protects the content of the object, not its presence. Now "borg repo-create" always writes config/defaults (empty if no default was given), and a missing object is an error (Repository.DefaultsMissing, rc 34) like one that fails the authentication: the commands using the defaults refuse to run. "borg check" reports such an object, "borg check --repair" replaces it by empty defaults, so the repository can be used again (with the built-in defaults). with_repository reads the defaults only after the security checks (assert_secure). Co-Authored-By: Claude Fable 5.1 <[email protected]>