Revision: 10510 http://pure-data.svn.sourceforge.net/pure-data/?rev=10510&view=rev Author: eighthave Date: 2009-01-11 01:33:43 +0000 (Sun, 11 Jan 2009)
Log Message: ----------- 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
Modified Paths: -------------- trunk/externals/pdp/modules/generic/pdp_rawout.c
Modified: trunk/externals/pdp/modules/generic/pdp_rawout.c =================================================================== --- trunk/externals/pdp/modules/generic/pdp_rawout.c 2009-01-11 00:45:53 UTC (rev 10509) +++ trunk/externals/pdp/modules/generic/pdp_rawout.c 2009-01-11 01:33:43 UTC (rev 10510) @@ -138,7 +138,7 @@
/* 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; }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.