From 79bde569ad90ffaf0bb3dbf1bfccffeaf8a6ad0a Mon Sep 17 00:00:00 2001 From: "Jordan K. Hubbard" Date: Mon, 17 Jun 1996 23:04:24 +0000 Subject: [PATCH] ack - left in a typo. Time for bed! --- release/sysinstall/media.c | 4 ++-- release/sysinstall/tcpip.c | 3 ++- usr.sbin/sysinstall/media.c | 4 ++-- usr.sbin/sysinstall/tcpip.c | 3 ++- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/release/sysinstall/media.c b/release/sysinstall/media.c index bd54d002052..770ca9c7fc5 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 6094813d0c9..7e4f073b24d 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 bd54d002052..770ca9c7fc5 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 6094813d0c9..7e4f073b24d 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])