aboutsummaryrefslogtreecommitdiff
path: root/internal/fusefrontend_reverse/node_xattr_linux.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/fusefrontend_reverse/node_xattr_linux.go')
-rw-r--r--internal/fusefrontend_reverse/node_xattr_linux.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/fusefrontend_reverse/node_xattr_linux.go b/internal/fusefrontend_reverse/node_xattr_linux.go
index f6d04a5..3c574f5 100644
--- a/internal/fusefrontend_reverse/node_xattr_linux.go
+++ b/internal/fusefrontend_reverse/node_xattr_linux.go
@@ -9,6 +9,9 @@ import (
"github.com/rfjakob/gocryptfs/v2/internal/syscallcompat"
)
+// On Linux, ENODATA is returned when an attribute is not found.
+const noSuchAttributeError = syscall.ENODATA
+
func (n *Node) getXAttr(cAttr string) (out []byte, errno syscall.Errno) {
d, errno := n.prepareAtSyscall("")
if errno != 0 {