Use proper path to hostname

This commit is contained in:
Jordan K. Hubbard 1996-03-19 11:51:36 +00:00
parent ad5dd2341c
commit 439a0e811d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=14694
3 changed files with 6 additions and 6 deletions

View File

@ -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';

View File

@ -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';

View File

@ -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';