Files
glibc/glibc-resolv-mdnshint.diff
Stephan Kulow 5fabd52a67 Accepting request 132085 from Base:System
Order changes; update to glibc 2.16 (forwarded request 132084 from a_jaeger)

OBS-URL: https://build.opensuse.org/request/show/132085
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/glibc?expand=0&rev=119
2012-08-31 07:27:30 +00:00

20 lines
780 B
Diff

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