Added
Link Here
|
1 |
--- vendor/bazil.org/fuse/mount_freebsd.go.orig 2022-08-09 15:43:51 UTC |
2 |
+++ vendor/bazil.org/fuse/mount_freebsd.go |
3 |
@@ -56,10 +56,11 @@ func mount(dir string, conf *mountConfig) (*os.File, e |
4 |
} |
5 |
} |
6 |
|
7 |
- f, err := os.OpenFile("/dev/fuse", os.O_RDWR, 0o000) |
8 |
+ fd, err := syscall.Open("/dev/fuse", os.O_RDWR|syscall.O_CLOEXEC, 0o000) |
9 |
if err != nil { |
10 |
return nil, err |
11 |
} |
12 |
+ f := os.NewFile(uintptr(fd), "/dev/fuse") |
13 |
|
14 |
cmd := exec.Command( |
15 |
"/sbin/mount_fusefs", |