Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37837597
en ru br
ALT Linux repositórios
S:2.38.0.23.0e1ef6779a-alt1
5.0: 2.9-alt5
4.1: 2.5.1-alt4.M41.2
4.0: 2.5-alt4.M40.2
3.0: 2.3.5-alt5

Outros repositórios

Group :: Sistema/Base
RPM: glibc

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: glibc-2.3.5-alt-ldconfig-search_dir.patch
Download


# Revert symlink handling changes in search_dir().
#Revert all these changes:
#----------------------------
#revision 1.40
#date: 2003/08/26 08:07:19;  author: drepper;  state: Exp;  lines: +1 -1
#(search_dir): When checking for GNU-style .so link file use the real
#file name, not the resolved name we got by following the symlinks.
#----------------------------
#revision 1.39
#date: 2003/08/25 21:49:35;  author: drepper;  state: Exp;  lines: +21 -4
#(search_dir): Treat symlink as regular file if it won't point to itself unless
#it is .so symlink for the linker.
#----------------------------
#revision 1.38
#date: 2003/08/25 09:05:09;  author: drepper;  state: Exp;  lines: +6 -13
#(search_dir): Revert patch of 2003-7-21.
#----------------------------
#revision 1.34
#date: 2003/07/21 20:17:16;  author: drepper;  state: Exp;  lines: +10 -3
#(search_dir): Treat symlink as regular file if it won't point to itself.
#----------------------------
--- glibc-2.3.5/elf/ldconfig.c.orig	2005-05-09 10:24:14 +0000
+++ glibc-2.3.5/elf/ldconfig.c	2005-05-09 10:46:28 +0000
@@ -796,27 +796,10 @@ search_dir (const struct dir_entry *entr
 	  continue;
 	}
 
-
-      /* A link may just point to itself.  */
-      if (is_link)
-	{
-	  /* If the path the link points to isn't its soname and it is not
-	     .so symlink for ld(1) only, we treat it as a normal file.  */
-	  const char *real_base_name = basename (real_file_name);
-
-	  if (strcmp (real_base_name, soname) != 0)
-	    {
-	      len = strlen (real_base_name);
-	      if (len < strlen (".so")
-		  || strcmp (real_base_name + len - strlen (".so"), ".so") != 0
-		  || strncmp (real_base_name, soname, len) != 0)
-		is_link = 0;
-	    }
-        }
-
       if (real_name != real_file_name)
 	free (real_name);
 
+      /* Links will just point to itself.  */
       if (is_link)
 	{
 	  free (soname);
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009