aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2009-01-11 01:33:43 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2009-01-11 01:33:43 +0000
commit3add2b82470c4d815dedc1b36d9077b5c3c6ba55 (patch)
tree5437dc961a5699f7f03597d3143f213096bf27ae
parent3964e2714e9672fb4a45c8a16a96153ab7cae05b (diff)
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
-rw-r--r--modules/generic/pdp_rawout.c2
1 files changed, 1 insertions, 1 deletions
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;
}