ldconfig

Andreas Schwab schwab@suse.de
Tue Apr 4 07:38:00 GMT 2000


This is a patch for ldconfig, so that you don't get "unknown" when
printing the cache and the entry contains some flags in addition to the
type (FLAG_SPARC_LIB64 or FLAG_IA64_LIB64).

Andreas.


2000-04-04  Andreas Schwab  <schwab@suse.de>

	* elf/cache.c (print_entry): Only look at the type field when
	printing the type.

Index: cache.c
===================================================================
RCS file: /cvs/glibc/libc/elf/cache.c,v
retrieving revision 1.1
diff -u -a -u -r1.1 cache.c
--- cache.c	1999/12/04 07:57:26	1.1
+++ cache.c	2000/04/04 14:27:00
@@ -72,7 +72,7 @@
 print_entry (const char *lib, int flag, const char *key)
 {
   printf ("\t%s (", lib);
-  switch (flag)
+  switch (flag & FLAG_TYPE_MASK)
     {
     case FLAG_LIBC4:
     case FLAG_ELF:

-- 
Andreas Schwab                                  "And now for something
SuSE Labs                                        completely different."
Andreas.Schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg


More information about the Libc-hacker mailing list