diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2009-01-11 01:33:43 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2009-01-11 01:33:43 +0000 |
commit | 3add2b82470c4d815dedc1b36d9077b5c3c6ba55 (patch) | |
tree | 5437dc961a5699f7f03597d3143f213096bf27ae /modules | |
parent | 3964e2714e9672fb4a45c8a16a96153ab7cae05b (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
Diffstat (limited to 'modules')
-rw-r--r-- | modules/generic/pdp_rawout.c | 2 |
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; } |