summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1996-03-19 11:51:36 +0000
committerjkh <jkh@FreeBSD.org>1996-03-19 11:51:36 +0000
commit59452b81ee0a6e623be5f55a96a49278b427632e (patch)
tree43c243c1d6d40ae12bc4c0498c301f6c1d93f082 /usr.sbin
parent1fa4d692594eafbf8e84846f170b918ee0afc781 (diff)
downloadFreeBSD-src-59452b81ee0a6e623be5f55a96a49278b427632e.zip
FreeBSD-src-59452b81ee0a6e623be5f55a96a49278b427632e.tar.gz
Use proper path to hostname
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/sade/config.c4
-rw-r--r--usr.sbin/sysinstall/config.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/sade/config.c b/usr.sbin/sade/config.c
index 8b90941..ffc0025 100644
--- a/usr.sbin/sade/config.c
+++ b/usr.sbin/sade/config.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: config.c,v 1.18 1995/12/07 10:33:35 peter Exp $
+ * $Id: config.c,v 1.19 1996/03/18 15:27:44 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -381,7 +381,7 @@ skip:
if (cp && *cp != '0' && (hp = variable_get(VAR_HOSTNAME))) {
char cp2[255];
- (void)vsystem("hostname %s", hp);
+ (void)vsystem("/bin/hostname %s", hp);
fp = fopen("/etc/hosts", "w");
if (!index(hp, '.'))
cp2[0] = '\0';
diff --git a/usr.sbin/sysinstall/config.c b/usr.sbin/sysinstall/config.c
index 8b90941..ffc0025 100644
--- a/usr.sbin/sysinstall/config.c
+++ b/usr.sbin/sysinstall/config.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: config.c,v 1.18 1995/12/07 10:33:35 peter Exp $
+ * $Id: config.c,v 1.19 1996/03/18 15:27:44 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -381,7 +381,7 @@ skip:
if (cp && *cp != '0' && (hp = variable_get(VAR_HOSTNAME))) {
char cp2[255];
- (void)vsystem("hostname %s", hp);
+ (void)vsystem("/bin/hostname %s", hp);
fp = fopen("/etc/hosts", "w");
if (!index(hp, '.'))
cp2[0] = '\0';
OpenPOWER on IntegriCloud