SHA256
1
0
forked from pool/kst
kst/r703517.diff

20 lines
718 B
Diff

------------------------------------------------------------------------
r703517 | wiebe | 2007-08-22 20:33:03 +0200 (Wed, 22 Aug 2007) | 4 lines
Apply Matt's patch to supply the third argument to open to allow compilation
with gcc -D_FORTIFY_SOURCE=2
------------------------------------------------------------------------
--- kst/src/datasources/dirfile/getdata.c
+++ kst/src/datasources/dirfile/getdata.c
@@ -2252,7 +2252,7 @@ static int DoIfRawOut(struct FormatType
return(1);
}
}else{
- R->fp = open(datafilename, O_RDWR | O_CREAT);
+ R->fp = open(datafilename, O_RDWR | O_CREAT, 0644);
if (R->fp < 0) {
*n_write = 0;
*error_code = PD_E_OPEN_RAWFIELD;