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:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user