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

Collapse All | Expand All

(-)b/net/rclone/Makefile (-1 / +1 lines)
Lines 1-7 Link Here
1
PORTNAME=	rclone
1
PORTNAME=	rclone
2
DISTVERSIONPREFIX=	v
2
DISTVERSIONPREFIX=	v
3
DISTVERSION=	1.59.0
3
DISTVERSION=	1.59.0
4
PORTREVISION=	2
4
PORTREVISION=	3
5
CATEGORIES=	net
5
CATEGORIES=	net
6
6
7
MAINTAINER=	tremere@cainites.net
7
MAINTAINER=	tremere@cainites.net
(-)b/net/rclone/files/patch-vendor_bazil.org_fuse_mount__freebsd.go (+15 lines)
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",

Return to bug 258056