summaryrefslogtreecommitdiff
path: root/tests/test_helpers/helpers.go
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_helpers/helpers.go')
-rw-r--r--tests/test_helpers/helpers.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/test_helpers/helpers.go b/tests/test_helpers/helpers.go
index 7275997..df71e52 100644
--- a/tests/test_helpers/helpers.go
+++ b/tests/test_helpers/helpers.go
@@ -61,12 +61,14 @@ func doInit() {
MountInfo = make(map[string]mountInfo)
// Something like /tmp/gocryptfs-test-parent-1234
testParentDir := fmt.Sprintf("%s/gocryptfs-test-parent-%d", os.TempDir(), os.Getuid())
- os.MkdirAll(testParentDir, 0700)
+ os.MkdirAll(testParentDir, 0755)
var err error
TmpDir, err = ioutil.TempDir(testParentDir, "")
if err != nil {
panic(err)
}
+ // Open permissions for the allow_other tests
+ os.Chmod(TmpDir, 0755)
DefaultPlainDir = TmpDir + "/default-plain"
DefaultCipherDir = TmpDir + "/default-cipher"
}
@@ -104,11 +106,11 @@ func ResetTmpDir(createDirIV bool) {
}
}
}
- err = os.Mkdir(DefaultPlainDir, 0700)
+ err = os.Mkdir(DefaultPlainDir, 0755)
if err != nil {
panic(err)
}
- err = os.Mkdir(DefaultCipherDir, 0700)
+ err = os.Mkdir(DefaultCipherDir, 0755)
if err != nil {
panic(err)
}