summarylogtreecommitdiffstats
path: root/g15daemon-1.9.5.3-config-write.patch
diff options
context:
space:
mode:
authorDaniel Menelkir2021-01-25 08:18:44 -0300
committerDaniel Menelkir2021-01-25 08:18:44 -0300
commitec09ad4d947f7ee003a369fc453eda420b8f5a6d (patch)
tree131d8a0f33090f7152daf1c43ed880e7837e4bdb /g15daemon-1.9.5.3-config-write.patch
parent9414ecac3e972c623cd680e74eb1b863ec0ddf28 (diff)
downloadaur-ec09ad4d947f7ee003a369fc453eda420b8f5a6d.tar.gz
Revert changes for now, something got wrong and I will investigate later today
Diffstat (limited to 'g15daemon-1.9.5.3-config-write.patch')
-rw-r--r--g15daemon-1.9.5.3-config-write.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/g15daemon-1.9.5.3-config-write.patch b/g15daemon-1.9.5.3-config-write.patch
new file mode 100644
index 000000000000..6f52d231f2e0
--- /dev/null
+++ b/g15daemon-1.9.5.3-config-write.patch
@@ -0,0 +1,12 @@
+diff -Nuar g15daemon-1.9.5.3.orig/g15daemon/utility_funcs.c g15daemon-1.9.5.3/g15daemon/utility_funcs.c
+--- g15daemon-1.9.5.3.orig/g15daemon/utility_funcs.c 2008-01-26 07:02:07.000000000 +0200
++++ g15daemon-1.9.5.3/g15daemon/utility_funcs.c 2011-11-09 09:19:43.000000000 +0200
+@@ -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));