Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > a7e5af6aa6a347894cde84f1cbda955e > files > 1

nsca-2.9.1-4.mga3.src.rpm

diff -Naur -x '*~' nsca-2.9.1/src/nsca.c nsca-2.9.1-fix-open/src/nsca.c
--- nsca-2.9.1/src/nsca.c	2012-01-27 14:20:36.000000000 +0100
+++ nsca-2.9.1-fix-open/src/nsca.c	2012-08-22 09:32:29.481439629 +0200
@@ -477,7 +477,7 @@
                             int checkresult_test_fd=-1;
                             char *checkresult_test=NULL;
                             asprintf(&checkresult_test,"%s/nsca.test.%i",check_result_path,getpid());
-                            checkresult_test_fd=open(checkresult_test,O_WRONLY|O_CREAT);
+                            checkresult_test_fd=open(checkresult_test,O_WRONLY|O_CREAT,0644);
                             if (checkresult_test_fd>0){
                                     unlink(checkresult_test);
                                     }