Browse Source

race condition in <fixcrlf>'s temp file creation. BZ 54393. Submitted by Jan Stolze.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1525078 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 11 years ago
parent
commit
0963d161c7
4 changed files with 16 additions and 7 deletions
  1. +1
    -0
      CONTRIBUTORS
  2. +5
    -1
      WHATSNEW
  3. +8
    -4
      contributors.xml
  4. +2
    -2
      src/main/org/apache/tools/ant/taskdefs/FixCRLF.java

+ 1
- 0
CONTRIBUTORS View File

@@ -153,6 +153,7 @@ James Duncan Davidson
Jan Cumps
Jan Matèrne
Jan Mynarik
Jan Stolze
Jason Hunter
Jason Pettiss
Jason Salter


+ 5
- 1
WHATSNEW View File

@@ -18,7 +18,11 @@ Other changes:
entries with long names.

* <parallel> swallowed the status code of nested <fail> tasks.
Bugzilla Report 55539
Bugzilla Report 55539.

* a race condition could make <fixcrlf> tasks of parallel builds to
interfere with each other.
Bugzilla Report 54393.

Changes from Ant 1.9.1 TO Ant 1.9.2
===================================


+ 8
- 4
contributors.xml View File

@@ -626,18 +626,22 @@
<middle>Duncan</middle>
<last>Davidson</last>
</name>
<name>
<first>Jan</first>
<last>Cumps</last>
</name>
<name>
<first>Jan</first>
<last>Mat&#232;rne</last>
</name>
<name>
<first>Jan</first>
<last>Cumps</last>
</name>
<name>
<first>Jan</first>
<last>Mynarik</last>
</name>
<name>
<first>Jan</first>
<last>Stolze</last>
</name>
<name>
<first>Jason</first>
<last>Hunter</last>


+ 2
- 2
src/main/org/apache/tools/ant/taskdefs/FixCRLF.java View File

@@ -352,9 +352,9 @@ public class FixCRLF extends MatchingTask implements ChainableReader {
fcv = new Vector<FilterChain>(1);
fcv.add(fc);
}
File tmpFile = FILE_UTILS.createTempFile("fixcrlf", "", null, true, false);
File tmpFile = FILE_UTILS.createTempFile("fixcrlf", "", null, true, true);
try {
FILE_UTILS.copyFile(srcFile, tmpFile, null, fcv, false, false,
FILE_UTILS.copyFile(srcFile, tmpFile, null, fcv, true, false,
encoding, outputEncoding == null ? encoding : outputEncoding,
getProject());



Loading…
Cancel
Save