diff --git a/net-tools-1.60-hostname_man.patch b/net-tools-1.60-hostname_man.patch new file mode 100644 index 0000000..5933a57 --- /dev/null +++ b/net-tools-1.60-hostname_man.patch @@ -0,0 +1,35 @@ +--- 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,32 @@ + complete FQDN of the system is returned with + .BR "hostname \-\-fqdn" . + ++.LP ++The function ++.BR gethostname(2) ++is used to get the hostname. Only when the ++.BR "hostname \-s" ++is called will ++.BR gethostbyname(2) ++be called. The difference in ++.BR gethostname(2) ++and ++.BR gethostbyname(2) ++is that ++.BR gethostbyname(2) ++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 diff --git a/net-tools.spec b/net-tools.spec index 4a46fc0..d113e0c 100644 --- a/net-tools.spec +++ b/net-tools.spec @@ -3,7 +3,7 @@ Summary: Basic networking tools. Name: net-tools Version: 1.60 -Release: 56 +Release: 57 License: GPL Group: System Environment/Base Source0: http://www.tazenda.demon.co.uk/phil/net-tools/net-tools-%{version}.tar.bz2 @@ -55,6 +55,7 @@ Patch40: net-tools-1.60-stdo.patch Patch41: net-tools-1.60-statistics.patch Patch42: net-tools-1.60-ifconfig.patch Patch43: net-tools-1.60-arp_overflow.patch +Patch44: net-tools-1.60-hostname_man.patch BuildRoot: %{_tmppath}/%{name}-root Requires(post,preun): chkconfig @@ -106,6 +107,7 @@ ifconfig, netstat, route, and others. %patch41 -p1 -b .statistics %patch42 -p1 -b .iface_drop %patch43 -p1 -b .overflow +%patch44 -p1 -b .hostname_man cp %SOURCE2 ./config.h cp %SOURCE3 ./config.make @@ -217,6 +219,8 @@ exit 0 %{_sysconfdir}/rc.d/init.d/netplugd %changelog +* Sat Oct 15 2005 Radek Vokal 1.60-57 +- add note to hostname man page about gethostbyname() (#166581) - don't ship any rarp man page (#170537) * Wed Aug 03 2005 Radek Vokal 1.60-56