changeset 186:89e092681ba7

Fix data file creation permissions
author Daniele Nicolodi <daniele.nicolodi@obspm.fr>
date Mon, 24 Feb 2014 13:17:08 +0100
parents bc980095a24d
children a5c70eae1e0b
files FXAnalyse.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/FXAnalyse.c	Mon Feb 24 13:16:52 2014 +0100
+++ b/FXAnalyse.c	Mon Feb 24 13:17:08 2014 +0100
@@ -308,7 +308,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);
+	fd = open(filename, O_CREAT|O_WRONLY|O_APPEND, 00744);
 	if (fd < 0) {
 		logmessage(ERROR, "open data file %s: %s", filename, strerror(errno));
 		return;