mirror of
https://github.com/restic/restic.git
synced 2026-04-19 19:29:25 +00:00
xattrs - restore all by default, doc/chglog update
Signed-off-by: Tesshu Flower <tflower@redhat.com>
This commit is contained in:
@@ -3,7 +3,6 @@ package main
|
||||
import (
|
||||
"context"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
"time"
|
||||
|
||||
"github.com/restic/restic/internal/debug"
|
||||
@@ -301,14 +300,6 @@ func getXattrSelectFilter(opts RestoreOptions) (func(xattrName string) bool, err
|
||||
}, nil
|
||||
}
|
||||
|
||||
// User has not specified any xattr includes or excludes
|
||||
if runtime.GOOS == "linux" {
|
||||
// For Linux, set default of including only user.* xattrs
|
||||
return func(xattrName string) bool {
|
||||
shouldInclude, _ := filter.IncludeByPattern([]string{"user.*"}, Warnf)(xattrName)
|
||||
return shouldInclude
|
||||
}, nil
|
||||
}
|
||||
// Not linux, default to including all xattrs
|
||||
// default to including all xattrs
|
||||
return func(_ string) bool { return true }, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user