<URL: http://bugs.freeciv.org/Ticket/Display.html?id=39901 >

open() with O_CREAT in its second argument needs to have a third argument

Thanks,
Brian Pepple <bpepple (AT) fedoraproject.org>
Index: client/connectdlg_common.c
===================================================================
--- client/connectdlg_common.c	(revision 14044)
+++ client/connectdlg_common.c	(working copy)
@@ -245,7 +245,7 @@
 
     /* include the port to avoid duplication */
     if (logfile) {
-      fd = open(logfile, O_WRONLY | O_CREAT);
+      fd = open(logfile, O_WRONLY | O_CREAT, 0644);
 
       if (fd != 1) {
         dup2(fd, 1);
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to