mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-16 15:44:04 +01:00
Use proper path to hostname
This commit is contained in:
parent
ad5dd2341c
commit
439a0e811d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=14694
@ -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';
|
||||
|
@ -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';
|
||||
|
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user