lcms2/lcms2-ocloexec.patch

41 lines
1.2 KiB
Diff

Index: src/cmscgats.c
===================================================================
--- src/cmscgats.c 2012-09-10 18:01:51.000000000 +0200
+++ src/cmscgats.c 2012-10-28 19:50:34.772962052 +0100
@@ -914,7 +914,7 @@
return;
}
- FileNest->Stream = fopen(FileNest->FileName, "rt");
+ FileNest->Stream = fopen(FileNest->FileName, "rte");
if (FileNest->Stream == NULL) {
SynError(it8, "File %s not found", FileNest->FileName);
@@ -1744,7 +1744,7 @@
memset(&sd, 0, sizeof(sd));
- sd.stream = fopen(cFileName, "wt");
+ sd.stream = fopen(cFileName, "wte");
if (!sd.stream) return FALSE;
for (i=0; i < it8 ->TablesCount; i++) {
@@ -2252,7 +2252,7 @@
cmsUInt32Number Size;
cmsUInt8Number Ptr[133];
- fp = fopen(FileName, "rt");
+ fp = fopen(FileName, "rte");
if (!fp) {
cmsSignalError(0, cmsERROR_FILE, "File '%s' not found", FileName);
return FALSE;
@@ -2330,7 +2330,7 @@
if (!hIT8) return NULL;
- it8 ->FileStack[0]->Stream = fopen(cFileName, "rt");
+ it8 ->FileStack[0]->Stream = fopen(cFileName, "rte");
if (!it8 ->FileStack[0]->Stream) {
cmsIT8Free(hIT8);