Blame SOURCES/hostname-rh.patch

346012
diff -up hostname/Makefile.rh hostname/Makefile
346012
--- hostname/Makefile.rh	2013-11-04 10:12:59.670379153 +0100
346012
+++ hostname/Makefile	2013-11-04 10:15:04.957314495 +0100
346012
@@ -17,14 +17,14 @@ OBJS=hostname.o
346012
 
346012
 install: hostname
346012
 	install -d ${BASEDIR}$(MANDIR)/man1
346012
-	install -o root -g root -m 0644 hostname.1 ${BASEDIR}$(MANDIR)/man1
346012
+	install -m 0644 hostname.1 ${BASEDIR}$(MANDIR)/man1
346012
 	ln -fs hostname.1 ${BASEDIR}$(MANDIR)/man1/dnsdomainname.1
346012
 	ln -fs hostname.1 ${BASEDIR}$(MANDIR)/man1/domainname.1
346012
 	ln -fs hostname.1 ${BASEDIR}$(MANDIR)/man1/ypdomainname.1
346012
 	ln -fs hostname.1 ${BASEDIR}$(MANDIR)/man1/nisdomainname.1
346012
 
346012
 	install -d ${BASEDIR}$(BINDIR)
346012
-	install -o root -g root -m 0755 hostname ${BASEDIR}$(BINDIR)
346012
+	install -m 0755 hostname ${BASEDIR}$(BINDIR)
346012
 	ln -fs hostname ${BASEDIR}$(BINDIR)/dnsdomainname
346012
 	ln -fs hostname ${BASEDIR}$(BINDIR)/domainname
346012
 	ln -fs hostname ${BASEDIR}$(BINDIR)/nisdomainname
346012
diff -up hostname/hostname.1.rh hostname/hostname.1
346012
--- hostname/hostname.1.rh	2013-11-03 15:24:23.000000000 +0100
346012
+++ hostname/hostname.1	2013-11-04 10:12:59.670379153 +0100
346012
@@ -80,6 +80,28 @@ complete FQDN of the system is returned
346012
 .B THE FQDN
346012
 below).
346012
 
346012
+.LP
346012
+The function 
346012
+.BR gethostname(2)
346012
+is used to get the hostname.  When the 
346012
+.BR "hostname \-a, \-d, \-f or \-i" 
346012
+is called will 
346012
+.BR gethostbyname(3)
346012
+be called.  The difference in 
346012
+.BR gethostname(2)
346012
+and
346012
+.BR gethostbyname(3)
346012
+is that
346012
+.BR gethostbyname(5)
346012
+is network aware, so it consults 
346012
+.IR /etc/nsswitch.conf
346012
+and
346012
+.IR /etc/host.conf
346012
+to decide whether to read information in
346012
+.IR /etc/hostname
346012
+or
346012
+.IR /etc/hosts
346012
+
346012
 .SS "SET NAME"
346012
 When called with one argument or with the
346012
 .B \-\-file
346012
@@ -105,8 +127,7 @@ command (see
346012
 .B THE FQDN
346012
 below).
346012
 .LP
346012
-The host name is usually set once at system startup in
346012
-.I /etc/init.d/hostname.sh
346012
+The host name is usually set once at system startup
346012
 (normally by reading the contents of a file which contains
346012
 the host name, e.g.
346012
 .IR /etc/hostname ).