check_logfiles: 3.7.5.1
[omd.git] / packages / nsca / patches / 0001-fix-broken-compilation.diff
blobcad197f1e631d20ebc25bfdb7d1db5cc56be4b8c
1 --- nsca-2.9.1/src/nsca.c.orig 2016-03-31 14:47:38.905689179 +0200
2 +++ nsca-2.9.1/src/nsca.c 2016-03-31 14:47:43.493565168 +0200
3 @@ -477,7 +477,7 @@
4 int checkresult_test_fd=-1;
5 char *checkresult_test=NULL;
6 asprintf(&checkresult_test,"%s/nsca.test.%i",check_result_path,getpid());
7 - checkresult_test_fd=open(checkresult_test,O_WRONLY|O_CREAT);
8 + checkresult_test_fd=open(checkresult_test,O_WRONLY|O_CREAT,S_IWUSR);
9 if (checkresult_test_fd>0){
10 unlink(checkresult_test);