X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=net-tools%2Fpatches%2Fnet-tools-1.60-hostname_man.patch;fp=net-tools%2Fpatches%2Fnet-tools-1.60-hostname_man.patch;h=6ce8b8ac82877b6ef579d07e41eea0e90ebffdda;hb=e84b24e82329d16ca18bff7966d4f02d997bc965;hp=0000000000000000000000000000000000000000;hpb=802ea3af55e3167b6574e23b230cdbf0ed2ae0db;p=ipfire-3.x.git diff --git a/net-tools/patches/net-tools-1.60-hostname_man.patch b/net-tools/patches/net-tools-1.60-hostname_man.patch new file mode 100644 index 000000000..6ce8b8ac8 --- /dev/null +++ b/net-tools/patches/net-tools-1.60-hostname_man.patch @@ -0,0 +1,36 @@ +--- net-tools-1.60/man/en_US/hostname.1.gethostbyname 2005-10-14 11:33:41.000000000 +0200 ++++ net-tools-1.60/man/en_US/hostname.1 2005-10-15 11:46:14.646697600 +0200 +@@ -99,6 +99,33 @@ + complete FQDN of the system is returned with + .BR "hostname \-\-fqdn" . + ++.LP ++The function ++.BR gethostname(2) ++is used to get the hostname. When the ++.BR "hostname \-a, \-d, \-f or \-i" ++is called will ++.BR gethostbyname(3) ++be called. The difference in ++.BR gethostname(2) ++and ++.BR gethostbyname(3) ++is that ++.BR gethostbyname(3) ++is network aware, so it consults ++.IR /etc/nsswitch.conf ++and ++.IR /etc/host.conf ++to decide whether to read information in ++.IR /etc/sysconfig/network ++or ++.IR /etc/hosts ++ ++To add another dimension to this, ++the ++.B hostname ++is also set when the network interface is brought up. ++ + .SS "SET NAME" + When called with one argument or with the + .B \-\-file