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:
parent
b4d81aac8b
commit
ff40652cab
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=108939
@ -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
|
||||
|
12
devel/gnome-vfs/files/patch-modules_sftp-method.c
Normal file
12
devel/gnome-vfs/files/patch-modules_sftp-method.c
Normal 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);
|
@ -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
|
||||
|
12
devel/gnomevfs2/files/patch-modules_sftp-method.c
Normal file
12
devel/gnomevfs2/files/patch-modules_sftp-method.c
Normal 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);
|
Loading…
Reference in New Issue
Block a user