Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 89381
Collapse All | Expand All

(-)file_not_specified_in_diff (-1 / +11 lines)
Line  Link Here
0
-- glibc/elf/dl-load.c
0
++ glibc/elf/dl-load.c
Lines 1631-1636 open_verify (const char *name, struct fi Link Here
1631
      /* Now run the tests.  */
1631
      /* Now run the tests.  */
1632
      if (__builtin_expect (fbp->len < (ssize_t) sizeof (ElfW(Ehdr)), 0))
1632
      if (__builtin_expect (fbp->len < (ssize_t) sizeof (ElfW(Ehdr)), 0))
1633
	{
1633
	{
1634
	  /* Make sure this isn't a directory.
1635
	     http://bugs.gentoo.org/89381  */
1636
	  struct stat64 st;
1637
	  if (__fxstat64 (_STAT_VER, fd, &st) == 0
1638
	      && S_ISDIR(st.st_mode))
1639
	    {
1640
	      __close (fd);
1641
	      return -1;
1642
	    }
1643
1634
	  errval = errno;
1644
	  errval = errno;
1635
	  errstring = (errval == 0
1645
	  errstring = (errval == 0
1636
		       ? N_("file too short") : N_("cannot read file data"));
1646
		       ? N_("file too short") : N_("cannot read file data"));

Return to bug 89381