Sophie

Sophie

distrib > Mageia > 5 > i586 > by-pkgid > 7656310e7bb2aeaa43e55396030af978 > files > 4

autologin-1.0.0-36.mga5.src.rpm

--- src/autologin.c	2008-07-02 08:28:39.000000000 -0400
+++ src/autologin.c.oden	2008-07-02 08:28:09.000000000 -0400
@@ -147,7 +147,8 @@ int main(int argc, char **argv)
 	}
 #endif
 
-	outfd = open("/var/log/autologin.log", O_WRONLY | O_CREAT);
+	outfd = open("/var/log/autologin.log", O_WRONLY | O_CREAT,
+		S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); 
 	close(1);
 	close(2);
 	dup2(outfd, 1);