mirror of
https://github.com/restic/restic.git
synced 2026-11-02 13:35:33 +00:00
fs: make generic and extended attrs independent of each other
This commit is contained in:
1 parent
6084848e5a
commit
087f95a298
6 files changed
+37
-32
No files matched your search
+2
-5
@@ -22,11 +22,8 @@ func nodeFromFileInfo(path string, fi os.FileInfo, ignoreXattrListError bool) (*
|
||||
return node, err
|
||||
}
|
||||
|
||||
allowExtended, err := nodeFillGenericAttributes(node, path, &stat)
|
||||
if allowExtended {
|
||||
// Skip processing ExtendedAttributes if allowExtended is false.
|
||||
err = errors.Join(err, nodeFillExtendedAttributes(node, path, ignoreXattrListError))
|
||||
}
|
||||
err := nodeFillGenericAttributes(node, path, &stat)
|
||||
err = errors.Join(err, nodeFillExtendedAttributes(node, path, ignoreXattrListError))
|
||||
return node, err
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user