commit b39a246f283ad2d0e517f990a3519e630d4d7159
parent 2a816714c25f3775b4bf38c82ad1f1959cd2bf91
Author: ukai <ukai>
Date: Sat, 11 Jan 2003 16:00:55 +0000
* ftp.c (ftp_pasv): ftp_command response
(readFTPDir): masked declaration of realpathname
From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat:
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
@@ -1,3 +1,8 @@
+2003-01-12 Fumitoshi UKAI <ukai@debian.or.jp>
+
+ * ftp.c (ftp_pasv): ftp_command response
+ (readFTPDir): masked declaration of realpathname
+
2003-01-12 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 03633] Re: cleanup (don't close connection of news server)
diff --git a/ftp.c b/ftp.c
@@ -199,7 +199,7 @@ ftp_pasv(FTP ftp)
switch (family) {
#ifdef INET6
case AF_INET6:
- ftp_command(ftp, "EPSV", NULL, &status);
+ tmp = ftp_command(ftp, "EPSV", NULL, &status);
if (status != 229)
return -1;
for (p = tmp->ptr + 4; *p && *p != '('; p++) ;
@@ -435,7 +435,7 @@ readFTPDir(ParsedURL *pu)
pu->file = "/";
}
else {
- char *realpathname = file_unquote(pu->file);
+ realpathname = file_unquote(pu->file);
if (sv_type == UNIXLIKE_SERVER) {
ftp_command(¤t_ftp, "CWD", realpathname, &status);
if (status == 250)