aboutsummaryrefslogtreecommitdiffstats
path: root/ftp.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2001-12-25 18:14:59 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2001-12-25 18:14:59 +0000
commit90150252ad18cd756c471f4324035833ee548a2a (patch)
treebb624a6948ec338c46b8938a543f9a510466305f /ftp.c
parent[w3m-dev 02729] (diff)
downloadw3m-90150252ad18cd756c471f4324035833ee548a2a.tar.gz
w3m-90150252ad18cd756c471f4324035833ee548a2a.zip
[w3m-dev 02732] fix Debian Bug#126381 - Passwords entered for HTTPS are used for HTTP
From: Kiyokazu SUTO <suto@ks-and-ks.ne.jp>
Diffstat (limited to 'ftp.c')
-rw-r--r--ftp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ftp.c b/ftp.c
index b1a89d0..46b564a 100644
--- a/ftp.c
+++ b/ftp.c
@@ -1,4 +1,4 @@
-/* $Id: ftp.c,v 1.8 2001/11/29 10:22:58 ukai Exp $ */
+/* $Id: ftp.c,v 1.9 2001/12/25 18:15:00 ukai Exp $ */
#include <stdio.h>
#include <pwd.h>
#include <Str.h>
@@ -420,7 +420,7 @@ openFTP(ParsedURL *pu)
if (pu->pass)
pass = pu->pass;
else if (pu->user) {
- pwd = find_auth_cookie(pu->host, pu->user);
+ pwd = find_auth_cookie(pu->host, pu->port, pu->user);
if (pwd == NULL) {
if (fmInitialized) {
term_raw();
@@ -450,7 +450,7 @@ openFTP(ParsedURL *pu)
if (FtpError(s))
return NULL;
if (add_auth_cookie_flag)
- add_auth_cookie(pu->host, pu->user, pwd);
+ add_auth_cookie(pu->host, pu->port, pu->user, pwd);
if (pu->file == NULL || *pu->file == '\0')
goto ftp_dir;
else