summaryrefslogtreecommitdiffstats
path: root/devel/gnomevfs2
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2004-04-05 00:59:17 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2004-04-05 00:59:17 +0800
commit7e47faafdc9818f2c96133146e087c995b4346e5 (patch)
treed91c2cd9a7b0cd44412748108e8f3929a80371fc /devel/gnomevfs2
parent022f537c3e4dc72cc3e1659f11cd549f6db21e82 (diff)
downloadmarcuscom-ports-7e47faafdc9818f2c96133146e087c995b4346e5.tar
marcuscom-ports-7e47faafdc9818f2c96133146e087c995b4346e5.tar.gz
marcuscom-ports-7e47faafdc9818f2c96133146e087c995b4346e5.tar.bz2
marcuscom-ports-7e47faafdc9818f2c96133146e087c995b4346e5.tar.lz
marcuscom-ports-7e47faafdc9818f2c96133146e087c995b4346e5.tar.xz
marcuscom-ports-7e47faafdc9818f2c96133146e087c995b4346e5.tar.zst
marcuscom-ports-7e47faafdc9818f2c96133146e087c995b4346e5.zip
Get password authentication working for sftp on recent 5.X systems at least.
Since 4.X lacks the UNIX98 terminal functions, it is unlikely that password auth will ever work correctly on those systems. However, pure password-less publickey sftp does work. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@2251 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'devel/gnomevfs2')
-rw-r--r--devel/gnomevfs2/files/patch-modules_pty-open.c13
-rw-r--r--devel/gnomevfs2/files/patch-modules_sftp-method.c9
2 files changed, 13 insertions, 9 deletions
diff --git a/devel/gnomevfs2/files/patch-modules_pty-open.c b/devel/gnomevfs2/files/patch-modules_pty-open.c
new file mode 100644
index 000000000..2ee23b086
--- /dev/null
+++ b/devel/gnomevfs2/files/patch-modules_pty-open.c
@@ -0,0 +1,13 @@
+--- modules/pty-open.c.orig Sun Apr 4 12:58:08 2004
++++ modules/pty-open.c Sun Apr 4 12:59:30 2004
+@@ -613,6 +613,10 @@
+ if ((fd == -1) && (errno == ENOENT)) {
+ fd = open("/dev/ptc", O_RDWR | O_NOCTTY); /* AIX */
+ }
++
++ if ((fd == -1) && (errno == ENOENT)) {
++ fd = posix_openpt(O_RDWR);
++ }
+ #endif
+ /* Set it to blocking. */
+ flags = fcntl(fd, F_GETFL);
diff --git a/devel/gnomevfs2/files/patch-modules_sftp-method.c b/devel/gnomevfs2/files/patch-modules_sftp-method.c
index be5e1448a..976a9ad4b 100644
--- a/devel/gnomevfs2/files/patch-modules_sftp-method.c
+++ b/devel/gnomevfs2/files/patch-modules_sftp-method.c
@@ -1,14 +1,5 @@
--- modules/sftp-method.c.orig Sat Apr 3 23:58:06 2004
+++ modules/sftp-method.c Sun Apr 4 00:00:38 2004
-@@ -72,7 +72,7 @@
- size_t default_req_len = 32768;
- guint max_req = 16;
-
--#ifdef HAVE_GRANTPT
-+#if defined(HAVE_GRANTPT) && !defined(__FreeBSD__)
- /* We only use this on systems with unix98 ptys */
- #define USE_PTY 1
- #endif
@@ -174,6 +174,15 @@
/* Inspired by atomicio() from OpenSSH */