]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Thu, 16 Jul 1998 19:28:34 +0000 (19:28 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 16 Jul 1998 19:28:34 +0000 (19:28 +0000)
1998-07-16 19:27  Ulrich Drepper  <drepper@cygnus.com>

* elf/rtld.c (process_envvars): Also recognize on as LD_BIND_NOW value.
(process_envvars): Append .PID to LD_DEBUG_OUTPUT file name.

ChangeLog
assert/assert-perr.c
assert/assert.c
elf/rtld.c

index 0de464a6816d4524f01b1cc9d138fe44fd875488..ce5a1b862f6e279cf27a33df1bce18b25b807a67 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+1998-07-16 19:27  Ulrich Drepper  <drepper@cygnus.com>
+
+       * elf/rtld.c (process_envvars): Also recognize on as LD_BIND_NOW value.
+       (process_envvars): Append .PID to LD_DEBUG_OUTPUT file name.
+
 1998-07-16 13:44  Ulrich Drepper  <drepper@cygnus.com>
 
        * argp/argp-fmtstream.c: Fix warnings introduced in last change.
index 5b84acef12066ac171332cafd50e31947591c0d6..ecfb5ee88848dca173b8b2746d53095f8e110e51 100644 (file)
@@ -25,7 +25,7 @@
 extern const char *__assert_program_name; /* In assert.c.  */
 
 #ifdef USE_IN_LIBIO
-# include <libo/iolibio.h>
+# include <libio/iolibio.h>
 # define fflush(s) _IO_fflush (s)
 #endif
 
index 7a30f533c6bb5bda3d2dde0c50d14b35bac8e633..f1144101f8d1d6b7b8c1dc30fc29c6db44b084be 100644 (file)
@@ -25,7 +25,7 @@
 const char *__assert_program_name;
 
 #ifdef USE_IN_LIBIO
-# include <libo/iolibio.h>
+# include <libio/iolibio.h>
 # define fflush(s) _IO_fflush (s)
 #endif
 
index f60a357d981169848450152e21f78c54384a246e..3fd13179ba5d48af318f21bd113da147197c9ef6 100644 (file)
@@ -1137,7 +1137,9 @@ process_envvars (enum mode *modep, int *lazyp)
          /* Do we bind early?  */
          if (memcmp (&envline[3], "BIND_NOW", 8) == 0
              && (envline[12] == '1' || envline[12] == 'y'
-                 || envline[12] == 'Y'))
+                 || envline[12] == 'Y'
+                 || ((envline[12] == 'o' || envline[12] == 'O')
+                     && (envline[13] == 'n' || envline[13] == 'N'))))
            bind_now = 1;
          break;
 
@@ -1222,8 +1224,16 @@ process_envvars (enum mode *modep, int *lazyp)
      messages to this file.  */
   if (any_debug && debug_output != NULL && !__libc_enable_secure)
     {
-      _dl_debug_fd = __open (debug_output, O_WRONLY | O_APPEND | O_CREAT,
-                            0666);
+      size_t name_len = strlen (debug_output);
+      char buf[name_len + 12];
+      char *startp;
+
+      buf[name_len + 11] = '\0';
+      startp = _itoa_word (__getpid (), &buf[name_len + 11], 10, 0);
+      *--startp = '.';
+      startp = memcpy (startp - name_len, debug_output, name_len);
+
+      _dl_debug_fd = __open (startp, O_WRONLY | O_APPEND | O_CREAT, 0666);
       if (_dl_debug_fd == -1)
        /* We use standard output if opening the file failed.  */
        _dl_debug_fd = STDOUT_FILENO;