mirror of
https://github.com/restic/restic.git
synced 2026-09-21 19:48:30 +00:00
Add ability to report warnings to terminal
Report warnings to terminal when unrecognized generic attributes are found in the repository.
This commit is contained in:
@@ -29,8 +29,8 @@ func Setxattr(path, name string, data []byte) error {
|
||||
}
|
||||
|
||||
// restoreGenericAttributes is no-op on openbsd.
|
||||
func (node *Node) restoreGenericAttributes(_ string) error {
|
||||
return node.handleAllUnknownGenericAttributesFound()
|
||||
func (node *Node) restoreGenericAttributes(_ string, warn func(msg string)) error {
|
||||
return node.handleAllUnknownGenericAttributesFound(warn)
|
||||
}
|
||||
|
||||
// fillGenericAttributes is a no-op on openbsd.
|
||||
|
||||
Reference in New Issue
Block a user