From 24fbb90b3d553cd1eb2122c9def3991b94588c79 Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Sat, 11 Jan 2003 16:00:55 +0000 Subject: * ftp.c (ftp_pasv): ftp_command response (readFTPDir): masked declaration of realpathname From: Fumitoshi UKAI --- ftp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ftp.c') diff --git a/ftp.c b/ftp.c index 6ed3fc6..7db34a0 100644 --- a/ftp.c +++ b/ftp.c @@ -1,4 +1,4 @@ -/* $Id: ftp.c,v 1.22 2003/01/11 15:55:10 ukai Exp $ */ +/* $Id: ftp.c,v 1.23 2003/01/11 16:00:56 ukai Exp $ */ #include #include #include @@ -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) -- cgit v1.2.3