This is sources Bugzilla
Bugzilla Version 2.17.5
Bugzilla Bug 2389
  /etc/host.conf's "order" line is useless Last modified: 2006-04-25 19:44
     Query page      Enter new bug
Bug#: 2389   Hardware:   Reporter: Samuel Thibault <samuel.thibault@ens-lyon.org>
Host: Target: Build:
Product:     Add CC:
Component:   Version:   CC:
Remove selected CCs
Status: RESOLVED   Priority:  
Resolution: FIXED   Severity:  
Assigned To: Ulrich Drepper <drepper@redhat.com>   Target Milestone:  
Flags: Requestee:
  backport ()
decimal: examined ()
  testsuite ()
Summary:
Keywords:

Attachment Description Type Created Actions
patch Removes unused num_services and service fields of struct hconf, and the corresponding initialization functions patch 2006-03-20 16:07 Edit | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 2389 depends on: Show dependency tree
Show dependency graph
Bug 2389 blocks:

Additional Comments:


Leave as RESOLVED FIXED
Reopen bug
Mark bug as VERIFIED

View Bug Activity   |   Format For Printing


Description:   Last confirmed: 0000-00-00 00:00 Opened: 2006-02-23 13:49
Hi,

I noticed that my /etc/host.conf is mostly useless:

order bind,hosts
multi on

The "order" line doesn't have any effect, only the "hosts:" line of
/etc/nsswitch.conf has effect. And indeed, the _res_hconf structure is almost
never used in libc: only _res_hconf.{flags,num_trimdomains,trimdomain} are used.

I guess this is on purpose since the future is /etc/nsswitch.conf, but for
much better readibility, res_hconf.c should probably get some cleanup. I'll
submit a separate bug report to manpages for removing most of the /etc/host.conf
documentation (since it does not work any more)

Regards,
Samuel

------- Additional Comment #1 From Dwayne Grant McConnell 2006-02-28 21:00 -------
Do you have a patch containing the code changes you think should occur?

------- Additional Comment #2 From Samuel Thibault 2006-03-20 16:07 -------
Created an attachment (id=933)
Removes unused num_services and service fields of struct hconf, and the
corresponding initialization functions

------- Additional Comment #3 From Ulrich Drepper 2006-04-25 19:44 -------
I applied a modified version of the patch.  We cannot mark 'order' lines as
errors.  They have to be ingred for compatibility.  And you changed teh libc ABI
by changing the hconf structure.

     Query page      Enter new bug
Actions: New | Query | bug # | Reports | Requests   New Account | Log In