aboutsummaryrefslogtreecommitdiff
path: root/tests/plaintextnames
diff options
context:
space:
mode:
Diffstat (limited to 'tests/plaintextnames')
-rw-r--r--tests/plaintextnames/plaintextnames_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/plaintextnames/plaintextnames_test.go b/tests/plaintextnames/plaintextnames_test.go
index c6d6145..f2dc7e7 100644
--- a/tests/plaintextnames/plaintextnames_test.go
+++ b/tests/plaintextnames/plaintextnames_test.go
@@ -116,7 +116,7 @@ func TestInoReuseEvil(t *testing.T) {
}
// create a new file that will likely get the same inode number
pPath2 := pPath + "2"
- fd, err := syscall.Creat(pPath2, 0600)
+ fd, err := syscall.Open(pPath2, syscall.O_CREAT|syscall.O_WRONLY|syscall.O_TRUNC, 0600)
if err != nil {
t.Fatal(err)
}