updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / g15daemon / g15daemon-1.9.5.3-config-write.patch
blob6f52d231f2e04df4a088b3474601e59f885deabf
1 diff -Nuar g15daemon-1.9.5.3.orig/g15daemon/utility_funcs.c g15daemon-1.9.5.3/g15daemon/utility_funcs.c
2 --- g15daemon-1.9.5.3.orig/g15daemon/utility_funcs.c 2008-01-26 07:02:07.000000000 +0200
3 +++ g15daemon-1.9.5.3/g15daemon/utility_funcs.c 2011-11-09 09:19:43.000000000 +0200
4 @@ -356,7 +356,7 @@
5 config_items_t * item=NULL;
6 char line[1024];
8 - config_fd = open(filename,O_CREAT|O_RDWR|O_TRUNC);
9 + config_fd = open(filename,O_CREAT|O_RDWR|O_TRUNC, 0644);
10 if(config_fd){
11 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");
12 write(config_fd,line,strlen(line));