forked from TrueCloudLab/restic
Add changelog and fix lint error
This commit is contained in:
parent
c0a1b9ada5
commit
5764300022
2 changed files with 13 additions and 2 deletions
12
changelog/unreleased/pull-4708
Normal file
12
changelog/unreleased/pull-4708
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
Enhancement: Back up and restore SecurityDescriptors on Windows
|
||||||
|
|
||||||
|
Restic did not back up SecurityDescriptors of files on Windows.
|
||||||
|
Restic now backs up and restores SecurityDescriptors (which includes owner, group,
|
||||||
|
discretionary access control list (DACL), system access control list (SACL))
|
||||||
|
when backing up files and folders on Windows. This requires the user to be
|
||||||
|
a member of backup operators or the application must be run as admin.
|
||||||
|
If that is not the case, only the current user's owner, group and DACL will be backed up
|
||||||
|
and during restore only the DACL of the backed file will be restored while the current
|
||||||
|
user's owner and group will be set during the restore.
|
||||||
|
|
||||||
|
https://github.com/restic/restic/pull/4708
|
|
@ -65,7 +65,6 @@ func CombineErrors(errors ...error) (err error) {
|
||||||
return nil // If no errors, return nil
|
return nil // If no errors, return nil
|
||||||
} else if !multipleErrors {
|
} else if !multipleErrors {
|
||||||
return err // If only one error, return that first error
|
return err // If only one error, return that first error
|
||||||
} else {
|
|
||||||
return fmt.Errorf("multiple errors occurred: [%s]", combinedErrorMsg)
|
|
||||||
}
|
}
|
||||||
|
return fmt.Errorf("multiple errors occurred: [%s]", combinedErrorMsg)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue