aboutsummaryrefslogtreecommitdiffstats
path: root/ftp.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2001-11-23 20:23:41 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2001-11-23 20:23:41 +0000
commit03f128ea0d2c511f94a4b00fe20a2c7038e957ca (patch)
tree0b9816dcaeb635df2b927b3fa580384b8ebece4f /ftp.c
parent[w3m-dev 02528] RFC2732 URL Patch (diff)
downloadw3m-03f128ea0d2c511f94a4b00fe20a2c7038e957ca.tar.gz
w3m-03f128ea0d2c511f94a4b00fe20a2c7038e957ca.zip
add ftppass_hostnamegen
Diffstat (limited to '')
-rw-r--r--ftp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ftp.c b/ftp.c
index aae1bb2..45e22fc 100644
--- a/ftp.c
+++ b/ftp.c
@@ -1,4 +1,4 @@
-/* $Id: ftp.c,v 1.4 2001/11/20 17:49:23 ukai Exp $ */
+/* $Id: ftp.c,v 1.5 2001/11/23 20:23:41 ukai Exp $ */
#include <stdio.h>
#include <pwd.h>
#include <Str.h>
@@ -110,7 +110,7 @@ FtpLogin(FTP * ftp_return, char *host, char *user, char *pass)
if (fd < 0)
return -1;
#ifdef FTPPASS_HOSTNAMEGEN
- if (!strcmp(user, "anonymous")) {
+ if (ftppass_hostnamegen && !strcmp(user, "anonymous")) {
size_t n = strlen(pass);
if (n > 0 && pass[n - 1] == '@') {