libgocryptfs/internal/fusefrontend/xattr_linux_unit_test.go
bolshevik 12b32aa06c Improved xattr handling on non-linux systems (#227)
* Fixed xattr filtering for MacOS. "system." and "user." prefixes are only relevant for Linux.
* Small cleanup and additional tests.
2018-04-17 20:33:04 +02:00

14 lines
215 B
Go

// +build linux
package fusefrontend
import (
"testing"
)
func TestDisallowedLinuxAttributes(t *testing.T) {
if !disallowedXAttrName("xxxx") {
t.Fatalf("Names that don't start with 'user.' should fail")
}
}