glibc/glibc-resolv-mdnshint.diff
Dominique Leuenberger b55daa035b Accepting request 285813 from Base:System
- htm-tabort.patch: Fix TABORT encoding for little endian (forwarded request 285812 from Andreas_Schwab)

OBS-URL: https://build.opensuse.org/request/show/285813
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/glibc?expand=0&rev=186
2015-02-22 16:19:34 +00:00

20 lines
777 B
Diff

Index: glibc-2.20/resolv/res_hconf.c
===================================================================
--- glibc-2.20.orig/resolv/res_hconf.c
+++ glibc-2.20/resolv/res_hconf.c
@@ -240,9 +240,12 @@ parse_line (const char *fname, int line_
if (c == NULL)
{
char *buf;
+ const char *hint = "";
- 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);