This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.23-18-gaff8c7a


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  aff8c7a9a700d31bdbc0ccb1b8f594ab62255e16 (commit)
      from  6793dd51d8e7d4f3408c183c6f7dc86acd7f1330 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=aff8c7a9a700d31bdbc0ccb1b8f594ab62255e16

commit aff8c7a9a700d31bdbc0ccb1b8f594ab62255e16
Author: Florian Weimer <fweimer@redhat.com>
Date:   Fri Feb 19 17:00:47 2016 +0100

    res_ninit: Update comment
    
    Since commit e66e7419a6f58200eec6941b14e2dcff9875cc6c (Actually make
    it possible to user the default name server.), the default is
    INADDR_LOOPBACK, not INADDR_ANY.

diff --git a/ChangeLog b/ChangeLog
index 8d54068..fef67b4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2016-02-19  Florian Weimer  <fweimer@redhat.com>
 
+	* resolv/res_init.c (res_ninit): Update comment.
+
+2016-02-19  Florian Weimer  <fweimer@redhat.com>
+
 	[BZ #19505]
 	* posix/spawn_int.h: Add headers and include guard.
 	(__spawn_valid_fd): New function.
diff --git a/resolv/res_init.c b/resolv/res_init.c
index e0b6a80..128004a 100644
--- a/resolv/res_init.c
+++ b/resolv/res_init.c
@@ -118,21 +118,7 @@ unsigned long long int __res_initstamp attribute_hidden;
 /*
  * Set up default settings.  If the configuration file exist, the values
  * there will have precedence.  Otherwise, the server address is set to
- * INADDR_ANY and the default domain name comes from the gethostname().
- *
- * An interrim version of this code (BIND 4.9, pre-4.4BSD) used 127.0.0.1
- * rather than INADDR_ANY ("0.0.0.0") as the default name server address
- * since it was noted that INADDR_ANY actually meant ``the first interface
- * you "ifconfig"'d at boot time'' and if this was a SLIP or PPP interface,
- * it had to be "up" in order for you to reach your own name server.  It
- * was later decided that since the recommended practice is to always
- * install local static routes through 127.0.0.1 for all your network
- * interfaces, that we could solve this problem without a code change.
- *
- * The configuration file should always be used, since it is the only way
- * to specify a default domain.  If you are running a server on your local
- * machine, you should say "nameserver 0.0.0.0" or "nameserver 127.0.0.1"
- * in the configuration file.
+ * INADDR_LOOPBACK and the default domain name comes from gethostname.
  *
  * Return 0 if completes successfully, -1 on error
  */

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog         |    4 ++++
 resolv/res_init.c |   16 +---------------
 2 files changed, 5 insertions(+), 15 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]