mirror of
https://git.freebsd.org/ports.git
synced 2025-07-15 16:29:15 -04:00
loading an extra kernel module on FreeBSD 10.0+ - Add LICENSE_FILE - Remove the unnecessary KMODDIR knob PR: 217880 Approved by: mat (mentor), maintainer timeout (2 weeks+) Differential Revision: https://reviews.freebsd.org/D10243
11 lines
279 B
C
11 lines
279 B
C
--- 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;
|