Page MenuHomeFreeBSD

D2577.id7904.diff
No OneTemporary

D2577.id7904.diff

Index: head/etc/rc.d/hostname
===================================================================
--- head/etc/rc.d/hostname
+++ head/etc/rc.d/hostname
@@ -39,16 +39,13 @@
hostname_start()
{
- # If we are not inside a jail, set the host name if it is not already set.
- # If we are inside a jail, set the host name even if it is already set,
- # but first check if it is permitted.
+ # If we are not inside a jail, set the host name.
+ # If we are inside a jail, set the host name if it is permitted.
#
if [ `$SYSCTL_N security.jail.jailed` -eq 1 ]; then
if [ `$SYSCTL_N security.jail.set_hostname_allowed` -eq 0 ]; then
return
fi
- elif [ -n "`/bin/hostname -s`" ]; then
- return
else
# If we're not in a jail and rc.conf doesn't specify a
# hostname, see if we can get one from kenv.

File Metadata

Mime Type
text/plain
Expires
Sun, Jun 14, 9:15 AM (18 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33947256
Default Alt Text
D2577.id7904.diff (813 B)

Event Timeline