From 3add2b82470c4d815dedc1b36d9077b5c3c6ba55 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Sun, 11 Jan 2009 01:33:43 +0000 Subject: fixed O_CREAT issue by adding a mode_t file permission mask of 0600 as third argument. It seems to compile fine on gcc < 4.3 svn path=/trunk/externals/pdp/; revision=10510 --- modules/generic/pdp_rawout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/generic/pdp_rawout.c b/modules/generic/pdp_rawout.c index e66929a..e001b37 100644 --- a/modules/generic/pdp_rawout.c +++ b/modules/generic/pdp_rawout.c @@ -138,7 +138,7 @@ static void *rawout_thread(void *y) /* open pipe */ if (-1 == (pipefd = open(x->x_pipe->s_name, O_WRONLY|O_NONBLOCK|O_APPEND))){ - if (-1 == (pipefd = open(x->x_pipe->s_name, O_WRONLY|O_CREAT))){ + if (-1 == (pipefd = open(x->x_pipe->s_name, O_WRONLY|O_CREAT, 0600))){ perror(me); goto exit; } -- cgit v1.2.1