Mercurial > hg > fxanalyse
changeset 235:95572be109a4
Fix data files creation permissions
author | Daniele Nicolodi <daniele.nicolodi@obspm.fr> |
---|---|
date | Mon, 27 Oct 2014 18:16:34 +0100 |
parents | b0b4b2aea43a |
children | cf2e21b81dcf |
files | FXAnalyse.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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;