summaryrefslogtreecommitdiffstats
path: root/release/sysinstall/ftp.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1996-12-11 19:35:26 +0000
committerjkh <jkh@FreeBSD.org>1996-12-11 19:35:26 +0000
commit85d529aa13a467a7a2632d7ff2e9fff71d6c4c91 (patch)
tree75585051a07341502e494752cc5953c1a47489ca /release/sysinstall/ftp.c
parent04f954db47add4c442bfc5ab23e5bfb3ec166ced (diff)
downloadFreeBSD-src-85d529aa13a467a7a2632d7ff2e9fff71d6c4c91.zip
FreeBSD-src-85d529aa13a467a7a2632d7ff2e9fff71d6c4c91.tar.gz
Cosmetic tweaks, initialize a few variables, fix a reversed conditional.
Diffstat (limited to 'release/sysinstall/ftp.c')
-rw-r--r--release/sysinstall/ftp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/release/sysinstall/ftp.c b/release/sysinstall/ftp.c
index a9e9060..2810e98 100644
--- a/release/sysinstall/ftp.c
+++ b/release/sysinstall/ftp.c
@@ -4,7 +4,7 @@
* This is probably the last attempt in the `sysinstall' line, the next
* generation being slated to essentially a complete rewrite.
*
- * $Id: ftp_strat.c,v 1.30 1996/12/09 08:22:13 jkh Exp $
+ * $Id: ftp.c,v 1.19 1996/12/11 09:34:59 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -88,8 +88,8 @@ try:
SAFE_STRCPY(password, variable_get(VAR_FTP_PASS));
else
sprintf(password, "installer@%s", variable_get(VAR_HOSTNAME));
- msgNotify("Logging in as %s..", login_name);
- if ((OpenConn = ftpLogin(hostname, login_name, password, FtpPort, isDebug(), &code)) != 0) {
+ msgNotify("Logging in to %s@%s..", login_name, hostname);
+ if ((OpenConn = ftpLogin(hostname, login_name, password, FtpPort, isDebug(), &code)) == NULL) {
if (variable_get(VAR_NO_CONFIRM))
msgNotify("Couldn't open FTP connection to %s, errcode = %d", hostname, code);
else
OpenPOWER on IntegriCloud