1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-30 05:40:06 +00:00

Fix password-based sftp authentication.

Reported by:	mezz
This commit is contained in:
Joe Marcus Clarke 2004-05-11 19:13:46 +00:00
parent b4d81aac8b
commit ff40652cab
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=108939
4 changed files with 26 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= gnomevfs2
PORTVERSION= 2.6.1.1
PORTREVISION= 1
CATEGORIES= devel gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/gnome-vfs/2.6

View File

@ -0,0 +1,12 @@
--- modules/sftp-method.c.orig Tue May 11 01:53:30 2004
+++ modules/sftp-method.c Tue May 11 01:54:07 2004
@@ -1081,7 +1081,9 @@
if (io_status == G_IO_STATUS_NORMAL) {
buffer[len] = 0;
if (g_str_has_suffix (buffer, "password: ") ||
+ g_str_has_suffix (buffer, "password:") ||
g_str_has_suffix (buffer, "Password: ") ||
+ g_str_has_suffix (buffer, "Password:") ||
g_str_has_prefix (buffer, "Enter passphrase for key")) {
if (invoke_full_auth (uri, done_auth, buffer, &password) && password != NULL) {
g_io_channel_write_chars (tty_channel, password, -1, &len, NULL);

View File

@ -7,6 +7,7 @@
PORTNAME= gnomevfs2
PORTVERSION= 2.6.1.1
PORTREVISION= 1
CATEGORIES= devel gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/gnome-vfs/2.6

View File

@ -0,0 +1,12 @@
--- modules/sftp-method.c.orig Tue May 11 01:53:30 2004
+++ modules/sftp-method.c Tue May 11 01:54:07 2004
@@ -1081,7 +1081,9 @@
if (io_status == G_IO_STATUS_NORMAL) {
buffer[len] = 0;
if (g_str_has_suffix (buffer, "password: ") ||
+ g_str_has_suffix (buffer, "password:") ||
g_str_has_suffix (buffer, "Password: ") ||
+ g_str_has_suffix (buffer, "Password:") ||
g_str_has_prefix (buffer, "Enter passphrase for key")) {
if (invoke_full_auth (uri, done_auth, buffer, &password) && password != NULL) {
g_io_channel_write_chars (tty_channel, password, -1, &len, NULL);