2015-02-22 17:19:34 +01:00
|
|
|
Index: glibc-2.20/resolv/res_hconf.c
|
2012-04-23 16:10:37 +02:00
|
|
|
===================================================================
|
2015-02-22 17:19:34 +01:00
|
|
|
--- glibc-2.20.orig/resolv/res_hconf.c
|
|
|
|
+++ glibc-2.20/resolv/res_hconf.c
|
2013-08-13 11:36:50 +02:00
|
|
|
@@ -240,9 +240,12 @@ parse_line (const char *fname, int line_
|
2010-05-25 10:18:17 +02:00
|
|
|
if (c == NULL)
|
|
|
|
{
|
|
|
|
char *buf;
|
2015-02-22 17:19:34 +01:00
|
|
|
+ const char *hint = "";
|
2010-05-25 10:18:17 +02:00
|
|
|
|
|
|
|
- if (__asprintf (&buf, _("%s: line %d: bad command `%s'\n"),
|
|
|
|
- fname, line_num, start) < 0)
|
|
|
|
+ if (__strncasecmp (start, "mdns", len) == 0 && len == 4)
|
|
|
|
+ hint = "Multicast DNS is now configured in /etc/nsswitch.conf instead.\nSee also the package and manpage of nss-mdns.\n";
|
|
|
|
+ if (__asprintf (&buf, _("%s: line %d: bad command `%s'\n%s"),
|
|
|
|
+ fname, line_num, start, hint) < 0)
|
|
|
|
return;
|
|
|
|
|
|
|
|
__fxprintf (NULL, "%s", buf);
|