11 lines
532 B
Diff
11 lines
532 B
Diff
--- a/g15daemon/utility_funcs.c
|
|||
|
|
+++ b/g15daemon/utility_funcs.c
|
||
|
|
@@ -356,7 +356,7 @@
|
||
|
|
config_items_t * item=NULL;
|
||
|
|
char line[1024];
|
||
|
|
|
||
|
|
- config_fd = open(filename,O_CREAT|O_RDWR|O_TRUNC);
|
||
|
|
+ config_fd = open(filename,O_CREAT|O_RDWR|O_TRUNC, 0644);
|
||
|
|
if(config_fd){
|
||
|
|
snprintf(line,1024,"# G15Daemon Configuration File\n# any items entered before a [section] header\n# will be in the Global config space\n# comments you wish to keep should start with a semicolon';'\n");
|
||
|
|
write(config_fd,line,strlen(line));
|