Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > 93c1331494e925a8a01c5cdd71c6c5a9 > files > 4

autologin-1.0.0-33.mga3.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);