Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 65892 | Differences between
and this patch

Collapse All | Expand All

(-)file_not_specified_in_diff (-5 / +5 lines)
Line  Link Here
0
-- ssp-orig.c  2004-09-30 10:24:23.000000000 +0200
0
++ ssp.c       2004-09-30 10:25:43.000000000 +0200
Lines 76-88 Link Here
76
  {
76
  {
77
    int fd;
77
    int fd;
78
#ifdef HAVE_DEV_ERANDOM
78
#ifdef HAVE_DEV_ERANDOM
79
    if ((fd = open ("/dev/erandom", O_RDONLY)) == (-1))
79
    if ((fd = __open ("/dev/erandom", O_RDONLY)) == (-1))
80
#endif
80
#endif
81
      fd = open ("/dev/urandom", O_RDONLY);
81
      fd = __open ("/dev/urandom", O_RDONLY);
82
    if (fd != (-1))
82
    if (fd != (-1))
83
      {
83
      {
84
       size = read (fd, (char *) &__guard, sizeof (__guard));
84
       size = __read (fd, (char *) &__guard, sizeof (__guard));
85
       close (fd);
85
       __close (fd);
86
       if (size == sizeof (__guard))
86
       if (size == sizeof (__guard))
87
         return;
87
         return;
88
      }
88
      }

Return to bug 65892