aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1996-06-17 23:04:24 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1996-06-17 23:04:24 +0000
commit79bde569ad90ffaf0bb3dbf1bfccffeaf8a6ad0a (patch)
treeeb2bbd66d7f3820ee1c630c4fea4df0f7a3560e8 /usr.sbin
parent975dcaa94f0e293493087ae61c35444542b302b3 (diff)
downloadsrc-79bde569ad90ffaf0bb3dbf1bfccffeaf8a6ad0a.tar.gz
src-79bde569ad90ffaf0bb3dbf1bfccffeaf8a6ad0a.zip
Notes
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/sysinstall/media.c4
-rw-r--r--usr.sbin/sysinstall/tcpip.c3
2 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/sysinstall/media.c b/usr.sbin/sysinstall/media.c
index bd54d002052c..770ca9c7fc59 100644
--- a/usr.sbin/sysinstall/media.c
+++ b/usr.sbin/sysinstall/media.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: media.c,v 1.40 1996/06/16 21:57:31 jkh Exp $
+ * $Id: media.c,v 1.41 1996/06/17 21:48:28 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -315,7 +315,7 @@ mediaSetFTP(dialogMenuItem *self)
}
variable_set2(VAR_FTP_HOST, hostname);
variable_set2(VAR_FTP_DIR, dir ? dir : "/");
- variable_set2(VAR_FTP_PORT, itoa(port));
+ variable_set2(VAR_FTP_PORT, itoa(FtpPort));
ftpDevice.type = DEVICE_TYPE_FTP;
ftpDevice.init = mediaInitFTP;
ftpDevice.get = mediaGetFTP;
diff --git a/usr.sbin/sysinstall/tcpip.c b/usr.sbin/sysinstall/tcpip.c
index 6094813d0c90..7e4f073b24de 100644
--- a/usr.sbin/sysinstall/tcpip.c
+++ b/usr.sbin/sysinstall/tcpip.c
@@ -1,5 +1,5 @@
/*
- * $Id: tcpip.c,v 1.40 1996/06/12 17:09:34 jkh Exp $
+ * $Id: tcpip.c,v 1.41 1996/06/13 17:07:41 jkh Exp $
*
* Copyright (c) 1995
* Gary J Palmer. All rights reserved.
@@ -480,6 +480,7 @@ tcpOpenDialog(Device *devp)
char *ifaces;
variable_set2(VAR_HOSTNAME, hostname);
+ sethostname(hostname, strlen(hostname));
if (domainname[0])
variable_set2(VAR_DOMAINNAME, domainname);
if (gateway[0])