1
0
mirror of https://github.com/rclone/rclone.git synced 2025-12-15 15:53:41 +00:00

mountlib: ensure we don't open files with read and write intent

This commit is contained in:
Nick Craig-Wood
2017-11-07 17:27:53 +00:00
parent 8951875c21
commit d7908c06c9
3 changed files with 10 additions and 7 deletions

View File

@@ -3,7 +3,6 @@
package mounttest
import (
"os"
"syscall"
"testing"
@@ -14,7 +13,7 @@ import (
func TestWriteFileDoubleClose(t *testing.T) {
run.skipIfNoFUSE(t)
out, err := os.Create(run.path("testdoubleclose"))
out, err := osCreate(run.path("testdoubleclose"))
assert.NoError(t, err)
fd := out.Fd()