PORTNAME= sshfs
PORTVERSION= 2.8
DISTVERSIONPREFIX= ${PORTNAME}_
PORTREVISION= 1
CATEGORIES= sysutils
PKGNAMEPREFIX= fusefs-
COMMENT= Mount remote directories over ssh
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
KMODDIR?= ${LOCALBASE}/modules
USE_GITHUB= yes
GH_ACCOUNT= libfuse
--- sshfs.c.orig 2017-03-17 21:07:50 UTC
+++ sshfs.c
@@ -1027,7 +1027,7 @@ static int pty_master(char **name)
{
int mfd;
- mfd = open("/dev/ptmx", O_RDWR | O_NOCTTY);
+ mfd = posix_openpt(O_RDWR | O_NOCTTY);
if (mfd == -1) {
perror("failed to open pty");
return -1;
Basic Instructions:
There are three ways to do this:
From version 2.7 it makes use of the legacy /dev/ptmx. For version 10.0+
please load the kernel module pty:
% kldload pty
Daemon initiated
1)
% sshfs -o idmap=user username@example.org: /path/to/mount/point