From 3639f9afead65b3f54dd049aa4ac1904ddb13dcd Mon Sep 17 00:00:00 2001 From: pfelt Date: Fri, 3 Sep 2010 16:45:31 +0000 Subject: [PATCH] -- fix an error due to -D_FORTIFY_SOURCE=2 being enabled on ubuntu's gcc --- src/libs/util/bongoagent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/util/bongoagent.c b/src/libs/util/bongoagent.c index 7470751..71da430 100644 --- a/src/libs/util/bongoagent.c +++ b/src/libs/util/bongoagent.c @@ -55,7 +55,7 @@ BongoAgentHandleSignal(BongoAgent *agent, const int buff_size = 50; snprintf(path, XPL_MAX_PATH, "%s/guru-meditation-%d", XPL_DEFAULT_WORK_DIR, (int)time(NULL)); - boomfile = open(path, O_CREAT | O_WRONLY); + boomfile = open(path, O_CREAT | O_WRONLY, (S_IRUSR | S_IWUSR)); if (boomfile != -1) { void * buffer[buff_size]; int buff_used;