backup: Ignore xattr.list permission error for parent directories

On FreeBSD, limited users may not be able to even list xattrs for the
parent directories above the snapshot source paths. As this can cause
the backup to fail, just ignore those errors.
This commit is contained in:
Michael Eischer
2024-04-10 20:46:15 +02:00
parent 6091029fd6
commit bf054c09d2
17 changed files with 97 additions and 25 deletions
+4
View File
@@ -23,6 +23,10 @@ func Listxattr(path string) ([]string, error) {
return nil, nil
}
func IsListxattrPermissionError(_ error) bool {
return false
}
// Setxattr is a no-op on openbsd.
func Setxattr(path, name string, data []byte) error {
return nil