# HG changeset patch # User Daniele Nicolodi # Date 1414430194 -3600 # Node ID 95572be109a4448192d9895dd71ead11c63ff4fc # Parent b0b4b2aea43aa22f9873a555b962e9fde74cecae Fix data files creation permissions diff -r b0b4b2aea43a -r 95572be109a4 FXAnalyse.c --- a/FXAnalyse.c Mon Oct 27 18:15:47 2014 +0100 +++ b/FXAnalyse.c Mon Oct 27 18:16:34 2014 +0100 @@ -475,7 +475,7 @@ // construct filename in the form folder\\id-name.txt snprintf(filename, sizeof(filename), "%s\\%s-%s.txt", folder, id, name); - fd = open(filename, O_CREAT|O_WRONLY|O_APPEND, 00744); + fd = open(filename, O_CREAT|O_WRONLY|O_APPEND, S_IRUSR|S_IWUSR|S_IRGRP); if (fd < 0) { logmessage(ERROR, "open data file %s: %s", filename, strerror(errno)); return;