diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-02-19 15:50:17 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-02-19 15:50:17 +0000 |
commit | afbe346d3ca5179817c1fc7573b15ea89695bab2 (patch) | |
tree | 4992af52f916ace73af961633ad07c64ac52ddd9 /ftp.c | |
parent | [w3m-dev 03058] mailer (diff) | |
download | w3m-afbe346d3ca5179817c1fc7573b15ea89695bab2.tar.gz w3m-afbe346d3ca5179817c1fc7573b15ea89695bab2.zip |
[w3m-dev 03057] Re: Bug#134350: w3m: Forgets (http auth) login information upon reload (or almost anything else)
* etc.c (find_auth): add `file'
check file as well
* etc.c (find_auth_cookie): add `file'
* etc.c (add_auth_cookie): add `file'
* file.c (AuthBasicCred): add "Basic "
* file.c (AuthDigestCred): add "Digest "
* file.c (getAuthCookie): if h_auth == NULL, get recorded cookie
* file.c (get_auth_cookie): get recorded cookie
* file.c (loadGeneralFile): don't clear add_auth_cookie_flag
by redirection
add_auth_cookie if authorization is required and passed
* fm.h (auth_cookie): add file
* ftp.c (openFTP): follow change auth_cookie
* proto.h (get_auth_cookie): added
* proto.h (find_auth_cookie): add `file'
* proto.h (add_auth_cookie): add `file'
* url.c (openURL): get_auth_cookie
From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat (limited to 'ftp.c')
-rw-r--r-- | ftp.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: ftp.c,v 1.10 2002/01/11 20:05:58 ukai Exp $ */ +/* $Id: ftp.c,v 1.11 2002/02/19 15:50:18 ukai Exp $ */ #include <stdio.h> #include <pwd.h> #include <Str.h> @@ -411,7 +411,7 @@ openFTP(ParsedURL *pu) if (pu->pass) pass = pu->pass; else if (pu->user) { - pwd = find_auth_cookie(pu->host, pu->port, pu->user); + pwd = find_auth_cookie(pu->host, pu->port, pu->file, pu->user); if (pwd == NULL) { if (fmInitialized) { term_raw(); @@ -441,7 +441,7 @@ openFTP(ParsedURL *pu) if (FtpError(s)) return NULL; if (add_auth_cookie_flag) - add_auth_cookie(pu->host, pu->port, pu->user, pwd); + add_auth_cookie(pu->host, pu->port, pu->file, pu->user, pwd); if (pu->file == NULL || *pu->file == '\0') goto ftp_dir; else |