summaryrefslogtreecommitdiff
path: root/ftp/gftp/files/patch-lib::sshv2.c
diff options
context:
space:
mode:
authorYen-Ming Lee <leeym@FreeBSD.org>2003-04-24 09:28:40 +0000
committerYen-Ming Lee <leeym@FreeBSD.org>2003-04-24 09:28:40 +0000
commit63728fc86908cd7b17df0eccf5b5fde4b0e0a7bc (patch)
treee9cb02dc257dac18521cc4d9a9cb6a4da2f09e45 /ftp/gftp/files/patch-lib::sshv2.c
parentupdate to leafnode 1.9.38 and unbreak it on FreeBSD 4.8 (diff)
make ssh2 support working for FreeBSD
PR: 51330 Submitted by: Oliver Lehmann <lehmann@ans-netz.de>
Notes
Notes: svn path=/head/; revision=79578
Diffstat (limited to '')
-rw-r--r--ftp/gftp/files/patch-lib::sshv2.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/ftp/gftp/files/patch-lib::sshv2.c b/ftp/gftp/files/patch-lib::sshv2.c
new file mode 100644
index 000000000000..3e0e4452ab57
--- /dev/null
+++ b/ftp/gftp/files/patch-lib::sshv2.c
@@ -0,0 +1,27 @@
+--- lib/sshv2.c.orig Wed Apr 23 22:45:50 2003
++++ lib/sshv2.c Wed Apr 23 22:41:59 2003
+@@ -523,7 +523,9 @@
+ int version, fdm, fds, s[2];
+ sshv2_message message;
+ pid_t child;
+-
++#ifdef __FreeBSD__
++ ssh_use_askpass=TRUE;
++#endif
+ g_return_val_if_fail (request != NULL, -2);
+ g_return_val_if_fail (request->protonum == GFTP_SSHV2_NUM, -2);
+ g_return_val_if_fail (request->hostname != NULL, -2);
+@@ -543,8 +545,13 @@
+ if (request->sftpserv_path == NULL ||
+ *request->sftpserv_path == '\0')
+ {
++#ifdef __FreeBSD__
++ p1 = "/usr/libexec";
++ p2 = '/';
++#else
+ p1 = "";
+ p2 = ' ';
++#endif
+ }
+ else
+ {