/[gentoo-x86]/app-shells/mksh/files/mksh-39c-urandom-write.patch
Gentoo

Contents of /app-shells/mksh/files/mksh-39c-urandom-write.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Sep 22 20:04:21 2012 UTC (2 years, 2 months ago) by ottxor
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
added prefix support (bug #432262)

(Portage version: 2.2.0_alpha131/cvs/Linux i686)

1 Index: work/mksh/arc4random.c
2 ===================================================================
3 --- work.orig/mksh/arc4random.c
4 +++ work/mksh/arc4random.c
5 @@ -367,14 +367,7 @@ arc4_writeback(uint8_t *buf, size_t len,
6 memcpy(buf, &num, sizeof (num));
7 return (do_rd ? 0 : 1);
8 #else
9 - int fd;
10 -
11 - if ((fd = open(__randomdev, O_WRONLY)) != -1) {
12 - if (write(fd, buf, len) < 4)
13 - do_rd = 1;
14 - close(fd);
15 - }
16 - return (do_rd || fd == -1 ? 0 : 1);
17 + return (0);
18 #endif
19 }
20

  ViewVC Help
Powered by ViewVC 1.1.20