Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > media > contrib-release-src > by-pkgid > 03631bde9720ebf618163e7afa1145a5 > files > 3

einit-0.40.0-2mdv2010.0.src.rpm

diff -Naur einit-0.40.0/src/modules/linux/linux-urandom.c einit-0.40.0.tpg/src/modules/linux/linux-urandom.c
--- einit-0.40.0/src/modules/linux/linux-urandom.c	2008-02-25 22:13:55.000000000 +0000
+++ einit-0.40.0.tpg/src/modules/linux/linux-urandom.c	2009-01-29 17:11:19.000000000 +0000
@@ -59,7 +59,7 @@
 
 	int from_fd = open(from, O_RDONLY);
 	if (from_fd) {
-		int to_fd = open(to, O_WRONLY | O_CREAT);
+		int to_fd = open(to, O_WRONLY | O_CREAT, S_IRUSR|S_IWUSR);
 		if (to_fd) {
 			char buffer[s];
                         memset (buffer, 0, s);