1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2025-03-30 00:00:14 +01:00
restic/internal/fs/meta_fd_notwindows.go
2024-11-30 19:17:25 +01:00

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
}