View | Details | Raw Unified | Return to bug 258056 | Differences between
and this patch

Collapse All | Expand All

(-)b/mount_freebsd.go (-1 / +2 lines)
Lines 56-65 func mount(dir string, conf *mountConfig) (*os.File, error) { Link Here
56
               }
56
               }
57
       }
57
       }
58
       f, err := os.OpenFile("/dev/fuse", os.O_RDWR, 0o000)
58
       fd, err := syscall.Open("/dev/fuse", os.O_RDWR|syscall.O_CLOEXEC, 0o000)
59
       if err != nil {
59
       if err != nil {
60
               return nil, err
60
               return nil, err
61
       }
61
       }
62
       f := os.NewFile(uintptr(fd), "/dev/fuse")
62
       cmd := exec.Command(
63
       cmd := exec.Command(
63
               "/sbin/mount_fusefs",
64
               "/sbin/mount_fusefs",

Return to bug 258056