Commit bc460087 authored by Aaron Jacobs's avatar Aaron Jacobs

Mount memfs with the default_permissions option.

This is necessary on Linux to make MemFSTest.Mkdir_PermissionDenied
pass, for the reasons outlined in commit e31cb17e. I don't quite
understand why it doesn't come up on OS X.
parent e31cb17e
......@@ -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())
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment