summaryrefslogtreecommitdiff
path: root/tests/xattr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/xattr')
-rw-r--r--tests/xattr/xattr_integration_test.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/xattr/xattr_integration_test.go b/tests/xattr/xattr_integration_test.go
index efe903b..c968a47 100644
--- a/tests/xattr/xattr_integration_test.go
+++ b/tests/xattr/xattr_integration_test.go
@@ -369,3 +369,17 @@ func TestAcl(t *testing.T) {
t.Error(err)
}
}
+
+// TestSlashInName checks that slashes in xattr names are allowed
+// https://github.com/rfjakob/gocryptfs/issues/627
+func TestSlashInName(t *testing.T) {
+ fn := test_helpers.DefaultPlainDir + "/" + t.Name()
+ err := ioutil.WriteFile(fn, []byte("12345"), 0700)
+ if err != nil {
+ t.Fatalf("creating empty file failed: %v", err)
+ }
+ err = setGetRmList3(fn, "user.foo@https://bar", []byte("val"))
+ if err != nil {
+ t.Error(err)
+ }
+}