rpms/net-tools/devel net-tools-1.60-hostname_man.patch, NONE, 1.1 net-tools.spec, 1.48, 1.49
fedora-cvs-commits at redhat.com
fedora-cvs-commits at redhat.com
Sat Oct 15 09:53:25 UTC 2005
Author: rvokal
Update of /cvs/dist/rpms/net-tools/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv14904
Modified Files:
net-tools.spec
Added Files:
net-tools-1.60-hostname_man.patch
Log Message:
- add note to hostname man page about gethostbyname() (#166581)
net-tools-1.60-hostname_man.patch:
hostname.1 | 26 ++++++++++++++++++++++++++
1 files changed, 26 insertions(+)
--- NEW FILE net-tools-1.60-hostname_man.patch ---
--- 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
Index: net-tools.spec
===================================================================
RCS file: /cvs/dist/rpms/net-tools/devel/net-tools.spec,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -r1.48 -r1.49
--- net-tools.spec 14 Oct 2005 09:51:44 -0000 1.48
+++ net-tools.spec 15 Oct 2005 09:53:21 -0000 1.49
@@ -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 @@
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 @@
%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 @@
%{_sysconfdir}/rc.d/init.d/netplugd
%changelog
+* Sat Oct 15 2005 Radek Vokal <rvokal at redhat.com> 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 <rvokal at redhat.com> 1.60-56
More information about the fedora-cvs-commits
mailing list