comparison FXAnalyse.c @ 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 a41c872bce48
comparison
equal deleted inserted replaced
234:b0b4b2aea43a 235:95572be109a4
473 char filename[FILENAME_MAX]; 473 char filename[FILENAME_MAX];
474 474
475 // construct filename in the form folder\\id-name.txt 475 // construct filename in the form folder\\id-name.txt
476 snprintf(filename, sizeof(filename), "%s\\%s-%s.txt", folder, id, name); 476 snprintf(filename, sizeof(filename), "%s\\%s-%s.txt", folder, id, name);
477 477
478 fd = open(filename, O_CREAT|O_WRONLY|O_APPEND, 00744); 478 fd = open(filename, O_CREAT|O_WRONLY|O_APPEND, S_IRUSR|S_IWUSR|S_IRGRP);
479 if (fd < 0) { 479 if (fd < 0) {
480 logmessage(ERROR, "open data file %s: %s", filename, strerror(errno)); 480 logmessage(ERROR, "open data file %s: %s", filename, strerror(errno));
481 return; 481 return;
482 } 482 }
483 483