summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--release/sysinstall/media.c4
-rw-r--r--release/sysinstall/tcpip.c3
-rw-r--r--usr.sbin/sysinstall/media.c4
-rw-r--r--usr.sbin/sysinstall/tcpip.c3
4 files changed, 8 insertions, 6 deletions
diff --git a/release/sysinstall/media.c b/release/sysinstall/media.c
index bd54d00..770ca9c 100644
--- a/release/sysinstall/media.c
+++ b/release/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/release/sysinstall/tcpip.c b/release/sysinstall/tcpip.c
index 6094813..7e4f073 100644
--- a/release/sysinstall/tcpip.c
+++ b/release/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])
diff --git a/usr.sbin/sysinstall/media.c b/usr.sbin/sysinstall/media.c
index bd54d00..770ca9c 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 6094813..7e4f073 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])
OpenPOWER on IntegriCloud