FreeBSD Bugzilla – Attachment 235792 Details for
Bug 258056
lang/go118: musn't poll /dev/fuse
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
bazil/fuse workaround
file_258056.txt (text/plain), 577 bytes, created by
Yuval Pavel Zholkover
on 2022-08-09 08:05:10 UTC
(
hide
)
Description:
bazil/fuse workaround
Filename:
MIME Type:
Creator:
Yuval Pavel Zholkover
Created:
2022-08-09 08:05:10 UTC
Size:
577 bytes
patch
obsolete
>diff --git a/mount_freebsd.go b/mount_freebsd.go >index 9106a18..52a1af0 100644 >--- a/mount_freebsd.go >+++ b/mount_freebsd.go >@@ -56,10 +56,11 @@ func mount(dir string, conf *mountConfig) (*os.File, error) { > } > } > >- f, err := os.OpenFile("/dev/fuse", os.O_RDWR, 0o000) >+ fd, err := syscall.Open("/dev/fuse", os.O_RDWR|syscall.O_CLOEXEC, 0o000) > if err != nil { > return nil, err > } >+ f := os.NewFile(uintptr(fd), "/dev/fuse") > > cmd := exec.Command( > "/sbin/mount_fusefs",
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 258056
:
235480
|
235481
|
235506
| 235792 |
235811