aboutsummaryrefslogtreecommitdiff
path: root/release/sysinstall/ftp.c
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1996-12-11 19:35:26 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1996-12-11 19:35:26 +0000
commit0a0e709620e4baea027f67417f64d8f812ee11de (patch)
tree75585051a07341502e494752cc5953c1a47489ca /release/sysinstall/ftp.c
parent204c7704d950f93b04674417e89a9297d2d7b39d (diff)
downloadsrc-0a0e709620e4baea027f67417f64d8f812ee11de.tar.gz
src-0a0e709620e4baea027f67417f64d8f812ee11de.zip
Cosmetic tweaks, initialize a few variables, fix a reversed conditional.
Notes
Notes: svn path=/head/; revision=20335
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 a9e906003d57..2810e98cfc8c 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