forked from pool/glibc
Andreas Schwab
30e48d0d7f
- Update to glibc 2.21 release. * A new semaphore algorithm has been implemented in generic C code for all machines * Added support for TSX lock elision of pthread mutexes on powerpc32, powerpc64 and powerpc64le * Optimized strcpy, stpcpy, strchrnul and strrchr implementations for AArch64 * i386 memcpy functions optimized with SSE2 unaligned load/store * New locales: tu_IN, bh_IN, raj_IN, ce_RU * The obsolete sigvec function has been removed - Patches from upstream removed * ifunc-x86-slow-sse4.patch * pthread-mutex-trylock-elision.patch - o-tmpfile.patch: Fix value of O_TMPFILE for architectures with non-default O_DIRECTORY (BZ #17912) OBS-URL: https://build.opensuse.org/request/show/285070 OBS-URL: https://build.opensuse.org/package/show/Base:System/glibc?expand=0&rev=391
20 lines
777 B
Diff
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);
|