Sophie

Sophie

distrib > Mandriva > 2011.0 > i586 > by-pkgid > 37721de9e3ab3d7cdd9ddc3ff4d030fb > files > 3

einit-0.40.0-3mdv2011.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);