diff options
author | des <des@FreeBSD.org> | 2000-10-13 09:36:46 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2000-10-13 09:36:46 +0000 |
commit | 0292a311c7cb1a30c72f639a32536137a9f454b1 (patch) | |
tree | 543d155428d55678e12643e04b38f13dcbdf851b | |
parent | 6b50bced2c5d443121e5fc65f1aa3405783afccd (diff) | |
download | FreeBSD-src-0292a311c7cb1a30c72f639a32536137a9f454b1.zip FreeBSD-src-0292a311c7cb1a30c72f639a32536137a9f454b1.tar.gz |
Use the right user name
-rw-r--r-- | lib/libfetch/ftp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libfetch/ftp.c b/lib/libfetch/ftp.c index 4a420ca..2aeecbb 100644 --- a/lib/libfetch/ftp.c +++ b/lib/libfetch/ftp.c @@ -638,11 +638,11 @@ _ftp_connect(struct url *url, struct url *purl, char *flags) if (!user || !*user) user = FTP_ANONYMOUS_USER; if (purl && url->port == FTP_DEFAULT_PORT) - e = _ftp_cmd(cd, "USER %s@%s", url->user, url->host); + e = _ftp_cmd(cd, "USER %s@%s", user, url->host); else if (purl) - e = _ftp_cmd(cd, "USER %s@%s@%d", url->user, url->host, url->port); + e = _ftp_cmd(cd, "USER %s@%s@%d", user, url->host, url->port); else - e = _ftp_cmd(cd, "USER %s", url->user); + e = _ftp_cmd(cd, "USER %s", user); /* did the server request a password? */ if (e == FTP_NEED_PASSWORD) { |