nagios-nsca/nagios-nsca-2.9.1-nagios_bug_286.patch

12 lines
724 B
Diff
Raw Permalink Normal View History

--- nsca-2.9.1/src/nsca.c 2012-01-27 14:20:36.000000000 +0100
+++ nsca-2.9.1/src/nsca.c.bug286 2012-10-24 21:51:31.000000000 +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,S_IWUSR);
if (checkresult_test_fd>0){
unlink(checkresult_test);
}