bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug in ldconfig.c (glibc 2.2)


From: Eddy De Greef
Subject: Bug in ldconfig.c (glibc 2.2)
Date: Sat, 18 Nov 2000 00:22:59 +0100

Hi,

after compiling glibc 2.2, I got some strange
messages from ldconfig: "Can't stat .2".
It turned out to be a bug in ldconfig.c. 
The attached patch fixes this. 

Regards,

Eddy
*** glibc-2.2/elf/ldconfig.c.orig       Fri Nov 17 23:48:58 2000
--- glibc-2.2/elf/ldconfig.c    Fri Nov 17 23:49:09 2000
***************
*** 370,382 ****
  
    /* Get complete path.  */
    full_libname = alloca (strlen (path) + strlen (libname) + 2);
!   full_soname = alloca (strlen (path) + strlen (libname) + 2);
    sprintf (full_libname, "%s/%s", path, libname);
    sprintf (full_soname, "%s/%s", path, soname);
    if (opt_chroot)
      {
        real_full_libname = alloca (strlen (real_path) + strlen (libname) + 2);
!       real_full_soname = alloca (strlen (real_path) + strlen (libname) + 2);
        sprintf (real_full_libname, "%s/%s", real_path, libname);
        sprintf (real_full_soname, "%s/%s", real_path, soname);
      }
--- 370,382 ----
  
    /* Get complete path.  */
    full_libname = alloca (strlen (path) + strlen (libname) + 2);
!   full_soname = alloca (strlen (path) + strlen (soname) + 2);
    sprintf (full_libname, "%s/%s", path, libname);
    sprintf (full_soname, "%s/%s", path, soname);
    if (opt_chroot)
      {
        real_full_libname = alloca (strlen (real_path) + strlen (libname) + 2);
!       real_full_soname = alloca (strlen (real_path) + strlen (soname) + 2);
        sprintf (real_full_libname, "%s/%s", real_path, libname);
        sprintf (real_full_soname, "%s/%s", real_path, soname);
      }

reply via email to

[Prev in Thread] Current Thread [Next in Thread]