about summary refs log tree commit diff
path: root/elf/dl-init.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1995-12-12 02:42:14 +0000
committerRoland McGrath <roland@gnu.org>1995-12-12 02:42:14 +0000
commit65bf5fa3172ab9d77fd1792fae68ad85eed2a7b1 (patch)
treec3816deedd850359142a0003295cf4f1b0ea96f3 /elf/dl-init.c
parent9b8a44cd18fbf1aedeb03e19f4bcdb06b0ee409b (diff)
downloadglibc-65bf5fa3172ab9d77fd1792fae68ad85eed2a7b1.tar.gz
glibc-65bf5fa3172ab9d77fd1792fae68ad85eed2a7b1.tar.xz
glibc-65bf5fa3172ab9d77fd1792fae68ad85eed2a7b1.zip
Regenerated
Fri Dec  8 13:04:51 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

	* posix/glob.c: Implement new options GLOB_ALTDIRFUNC, GLOB_BRACE,
	GLOB_TILDE, GLOB_NOMAGIC.
	(glob): Use stat instead of lstat to determine directoriness.
	* posix/glob.h (GLOB_ALTDIRFUNC, GLOB_BRACE, GLOB_NOMAGIC, GLOB_TILDE):
	New flag bits.
	(__GLOB_FLAGS): Include them.
	(glob_t): New members gl_closedir, gl_readdir, gl_opendir, gl_lstat,
	gl_stat.
Diffstat (limited to 'elf/dl-init.c')
-rw-r--r--elf/dl-init.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/elf/dl-init.c b/elf/dl-init.c
index c44a73f29b..7375c5f782 100644
--- a/elf/dl-init.c
+++ b/elf/dl-init.c
@@ -62,7 +62,8 @@ _dl_init_next (void)
 	      }
 	}
 
-      if (l->l_info[DT_INIT])
+      if (l->l_info[DT_INIT] &&
+	  !(l->l_name[0] == '\0' && l->l_type == lt_executable))
 	{
 	  /* Run this object's initializer.  */
 	  l->l_init_running = 1;
@@ -76,7 +77,7 @@ _dl_init_next (void)
     }
 
   /* Look for the first initializer not yet called.  */
-  l = _dl_loaded->l_next;	/* Skip the executable itself.  */
+  l = _dl_loaded;
   do
     {
       init = next_init (l);