From bc460087541a6bce20d15f2417dc1260a7478df6 Mon Sep 17 00:00:00 2001 From: Aaron Jacobs Date: Mon, 16 Mar 2015 13:41:01 +1100 Subject: [PATCH] Mount memfs with the default_permissions option. This is necessary on Linux to make MemFSTest.Mkdir_PermissionDenied pass, for the reasons outlined in commit e31cb17. I don't quite understand why it doesn't come up on OS X. --- samples/memfs/memfs_test.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/samples/memfs/memfs_test.go b/samples/memfs/memfs_test.go index 6b68f7e..e332107 100644 --- a/samples/memfs/memfs_test.go +++ b/samples/memfs/memfs_test.go @@ -27,6 +27,7 @@ import ( "testing" "time" + bazilfuse "bazil.org/fuse" "github.com/jacobsa/fuse" "github.com/jacobsa/fuse/fusetesting" "github.com/jacobsa/fuse/samples/memfs" @@ -112,7 +113,13 @@ func (t *MemFSTest) SetUp(ti *TestInfo) { // Mount a file system. fs := memfs.NewMemFS(currentUid(), currentGid(), &t.clock) - if t.mfs, err = fuse.Mount(mountPoint, fs); err != nil { + + t.mfs, err = fuse.Mount( + mountPoint, + fs, + bazilfuse.DefaultPermissions()) + + if err != nil { panic("Mount: " + err.Error()) }