This is a multi-part message in MIME format.
--------------090204030106060507070808
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
This patch fixes an attribute error during compilation due to glibc
enforcing the requirement that the mode argument to open() is supplied
when O_CREAT is set in flags.
Cheers,
Adam James
--
Open Source Consultant, Transitiv Technologies Ltd.
Business Critical Support and Services for Open Source Software.
T: 0203 384 7207
E: adam.james@transitiv.co.uk
W: http://www.transitiv.co.uk/
--------------090204030106060507070808
Content-Type: text/x-patch;
name="0001-base-nebmods-Add-mode-argument-to-open.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="0001-base-nebmods-Add-mode-argument-to-open.patch"
From ccbe957fdd6bc8d316f12a8484ab857b8fd07980 Mon Sep 17 00:00:00 2001
From: Adam James
Date: Fri, 21 Dec 2012 21:06:30 +0000
Subject: [PATCH 1/2] base/nebmods: Add mode argument to open()
This patch fixes an attribute error during compilation due to glibc
enforcing the requirement that the mode argument to open() is supplied
when O_CREAT is set in flags.
---
base/nebmods.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/base/nebmods.c b/base/nebmods.c
index 3053d37..bbc36c7 100644
--- a/base/nebmods.c
+++ b/base/nebmods.c
@@ -234,7 +234,7 @@ int neb_load_module(nebmodule *mod) {
* but only if we're supposed to dump core
*/
if(daemon_dumps_core == TRUE) {
- dest_fd = open(output_file, O_CREAT | O_WRONLY);
+ dest_fd = open(output_file, O_CREAT | O_WRONLY, S_IRWXU | S_IRGRP | S_IROTH);
result = my_fdcopy(mod->filename, output_file, dest_fd);
mod->dl_file = strdup(output_file);
}
--
1.7.1
--------------090204030106060507070808--
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: adam.james@transitiv.co.uk