mirror of
https://github.com/octoleo/restic.git
synced 2024-11-26 06:46:34 +00:00
6a97833337
- Fix a logic error that instead of reporting the *first* metadata-setting error that appears, we were instead reporting the *last* error (and only if the lchown call failed!). - Don't show any errors when setting metadata for files in non-root mode (things like timestamps, attributes). Previously, only lchown errors were skipped. But other kinds of attribute errors make sense to skip as well. The code path happened to work correctly before because of the above logic error. But once that was fixed, this change needed to happen too.
8 lines
308 B
Plaintext
8 lines
308 B
Plaintext
Bugfix: Don't ignore metadata-setting errors during restore
|
|
|
|
Restic was accidentally ignoring errors when setting timestamps,
|
|
attributes, or file modes during restore. It will now report those
|
|
errors (unless it's just a permission error when not running as root).
|
|
|
|
https://github.com/restic/restic/pull/4958
|