[PD-cvs] SF.net SVN: pure-data:[10511] branches/pd-extended/v0-40/externals/pdp/ modules/generic/pdp_rawout.c
eighthave at users.sourceforge.net
eighthave at users.sourceforge.net
Sun Jan 11 02:44:22 CET 2009
Revision: 10511
http://pure-data.svn.sourceforge.net/pure-data/?rev=10511&view=rev
Author: eighthave
Date: 2009-01-11 01:44:22 +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:
--------------
branches/pd-extended/v0-40/externals/pdp/modules/generic/pdp_rawout.c
Modified: branches/pd-extended/v0-40/externals/pdp/modules/generic/pdp_rawout.c
===================================================================
--- branches/pd-extended/v0-40/externals/pdp/modules/generic/pdp_rawout.c 2009-01-11 01:33:43 UTC (rev 10510)
+++ branches/pd-extended/v0-40/externals/pdp/modules/generic/pdp_rawout.c 2009-01-11 01:44:22 UTC (rev 10511)
@@ -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.
More information about the Pd-cvs
mailing list