# HG changeset patch # User Daniele Nicolodi # Date 1393244228 -3600 # Node ID 89e092681ba7b61d4e7ee663753421758872dc94 # Parent bc980095a24d29812170b98595c08fb37c325b43 Fix data file creation permissions diff -r bc980095a24d -r 89e092681ba7 FXAnalyse.c --- 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;