diff options
author | marcus <marcus@FreeBSD.org> | 2004-05-12 03:13:46 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2004-05-12 03:13:46 +0800 |
commit | ae8d53cf4e46050120721102f81b3c4623431e49 (patch) | |
tree | 66bba042abb6398c57863d0fa014e8f5b5ee96c6 /devel | |
parent | b3307175548a9b65b3476376a5674a0bfae4967e (diff) | |
download | freebsd-ports-graphics-ae8d53cf4e46050120721102f81b3c4623431e49.tar.gz freebsd-ports-graphics-ae8d53cf4e46050120721102f81b3c4623431e49.tar.zst freebsd-ports-graphics-ae8d53cf4e46050120721102f81b3c4623431e49.zip |
Fix password-based sftp authentication.
Reported by: mezz
Diffstat (limited to 'devel')
-rw-r--r-- | devel/gnome-vfs/Makefile | 1 | ||||
-rw-r--r-- | devel/gnome-vfs/files/patch-modules_sftp-method.c | 12 | ||||
-rw-r--r-- | devel/gnomevfs2/Makefile | 1 | ||||
-rw-r--r-- | devel/gnomevfs2/files/patch-modules_sftp-method.c | 12 |
4 files changed, 26 insertions, 0 deletions
diff --git a/devel/gnome-vfs/Makefile b/devel/gnome-vfs/Makefile index 0cfcaab0970..5b79b717170 100644 --- a/devel/gnome-vfs/Makefile +++ b/devel/gnome-vfs/Makefile @@ -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 diff --git a/devel/gnome-vfs/files/patch-modules_sftp-method.c b/devel/gnome-vfs/files/patch-modules_sftp-method.c new file mode 100644 index 00000000000..e1255db179c --- /dev/null +++ b/devel/gnome-vfs/files/patch-modules_sftp-method.c @@ -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); diff --git a/devel/gnomevfs2/Makefile b/devel/gnomevfs2/Makefile index 0cfcaab0970..5b79b717170 100644 --- a/devel/gnomevfs2/Makefile +++ b/devel/gnomevfs2/Makefile @@ -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 diff --git a/devel/gnomevfs2/files/patch-modules_sftp-method.c b/devel/gnomevfs2/files/patch-modules_sftp-method.c new file mode 100644 index 00000000000..e1255db179c --- /dev/null +++ b/devel/gnomevfs2/files/patch-modules_sftp-method.c @@ -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); |