mirror of
https://github.com/restic/restic.git
synced 2025-03-30 00:00:14 +01:00
19 lines
468 B
Go
19 lines
468 B
Go
//go:build darwin || linux
|
|
|
|
package fs
|
|
|
|
import "github.com/restic/restic/internal/restic"
|
|
|
|
func (p *fdMetadataHandle) Xattr(ignoreListError bool) ([]restic.ExtendedAttribute, error) {
|
|
path := p.Name()
|
|
return xattrFromPath(
|
|
path,
|
|
func() ([]string, error) { return flistxattr(p.f) },
|
|
func(attr string) ([]byte, error) { return fgetxattr(p.f, attr) },
|
|
ignoreListError,
|
|
)
|
|
}
|
|
|
|
func (p *fdMetadataHandle) SecurityDescriptor() (*[]byte, error) {
|
|
return nil, nil
|
|
}
|