Skip to content

Commit

Permalink
(Solaris) return ENOTSUP on unix.Openat error (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
kuba-- authored Aug 11, 2022
1 parent 5a86313 commit 83e010c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xattr_solaris.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func llistxattr(path string, data []byte) (int, error) {
func flistxattr(f *os.File, data []byte) (int, error) {
fd, err := unix.Openat(int(f.Fd()), ".", unix.O_RDONLY|unix.O_XATTR, 0)
if err != nil {
return 0, err
return 0, unix.ENOTSUP
}
xf := os.NewFile(uintptr(fd), f.Name())
defer func() {
Expand Down

0 comments on commit 83e010c

Please sign in to comment.